wordpress-dev/import-testdata.sh

16 lines
426 B
Bash
Raw 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'
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