wordpress-dev/import-testdata.sh

19 lines
605 B
Bash
Raw Permalink Normal View History

#!/bin/sh
2020-05-06 15:12:41 +00:00
. /home/ray/Projects/wordpress-dev/load-config.sh
_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
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