Add wordpress importer (#182)

* add wordpress, test

* add wp migrator to rest

* add readme, fix test, fix error handling
This commit is contained in:
Anton Kosourov
2018-08-02 22:05:53 -05:00
committed by Umputun
parent e79b95de0c
commit 39e426bd4b
11 changed files with 645 additions and 32 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
echo "import wordpress file $1 to site $2"
curl -X POST -H "Content-Type: application/xml" -d @/srv/var/$1 "http://127.0.0.1:8081/api/v1/admin/import?site=${2}&provider=wordpress&secret=${SECRET}"
echo "import completed"