add a test for \n handling in wp, fix incorrect curl param caused removal of \n #156

This commit is contained in:
Umputun
2018-08-17 16:12:02 -05:00
parent 8d9622cfd0
commit f3880aa302
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,5 +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}"
curl -X POST -H "Content-Type: application/xml" --data-binary @/srv/var/$1 "http://127.0.0.1:8081/api/v1/admin/import?site=${2}&provider=wordpress&secret=${SECRET}"
echo "import completed"