Create upgrade.sh

This commit is contained in:
Michael
2020-07-16 14:44:30 +01:00
committed by GitHub
parent 36e9462007
commit 64e4cd3926

14
upgrade.sh Normal file
View File

@@ -0,0 +1,14 @@
echo Working out HOME directory
cd ~
sleep 1s
echo Setting WP Path
HMEPATH="$(pwd)"
sleep 1s
echo Deactivating Old Workers
echo
wp plugin deactivate worker --path=$HMEPATH/public_html/ && wp plugin delete worker --path=$HMEPATH/public_html/
wp plugin deactivate auocloudworker --path=$HMEPATH/public_html/ && wp plugin delete auocloudworker --path=$HMEPATH/public_html/
sleeps 1s
echo Installing New Workers
wp plugin install https://downloads.wordpress.org/plugin/mainwp-child.4.0.7.1.zip --path=$HMEPATH/public_html/
wp plugin activate mainwp-child --path=$HMEPATH/public_html/