wordpress-dev/import-testdata.sh

16 lines
395 B
Bash
Executable File

#!/bin/sh
. ./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