19 lines
605 B
Bash
Executable File
19 lines
605 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /home/ray/Projects/wordpress-dev/load-config.sh
|
|
|
|
_username="$_user_www"
|
|
_url="$_local_hostname.$_local_domain"
|
|
_path='/var/www/html/wordpress'
|
|
|
|
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
|
|
ssh "$_username@$_url" wp "--path=$_path" plugin deactivate wordpress-importer --uninstall
|