2020-05-06 13:33:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-05-06 15:12:41 +00:00
|
|
|
. /home/ray/Projects/wordpress-dev/load-config.sh
|
2020-05-06 13:33:31 +00:00
|
|
|
|
|
|
|
_username="$_user_www"
|
|
|
|
_url="$_local_hostname.$_local_domain"
|
|
|
|
_path='/var/www/html/wordpress'
|
|
|
|
|
2020-05-27 13:38:52 +00:00
|
|
|
ssh "$_username@$_url" wp "--path=$_path" plugin install wordpress-importer --activate
|
|
|
|
|
2020-05-06 13:33:31 +00:00
|
|
|
ssh "$_username@$_url" wget -O testdata.xml 'https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml'
|
|
|
|
|
|
|
|
ssh "$_username@$_url" wp "--path=$_path" \
|
|
|
|
import testdata.xml \
|
|
|
|
--authors=create
|
|
|
|
|
|
|
|
ssh "$_username@$_url" rm testdata.xml
|
2020-05-27 13:38:52 +00:00
|
|
|
ssh "$_username@$_url" wp "--path=$_path" plugin deactivate wordpress-importer --uninstall
|