mirror of
https://github.com/mtan93/auocloud-auowp.git
synced 2026-03-08 05:31:59 +00:00
Create upgrade.sh
This commit is contained in:
14
upgrade.sh
Normal file
14
upgrade.sh
Normal 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/
|
||||
Reference in New Issue
Block a user