* add wordpress, test * add wp migrator to rest * add readme, fix test, fix error handling
5 lines
237 B
Bash
Executable File
5 lines
237 B
Bash
Executable File
#!/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" |