From 2eda01675087346f81455e31067b6ce8a8a8ab8b Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Thu, 16 Jul 2020 16:31:03 +0100 Subject: [PATCH] Create fix.sh --- fix.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fix.sh diff --git a/fix.sh b/fix.sh new file mode 100644 index 0000000..1073772 --- /dev/null +++ b/fix.sh @@ -0,0 +1,12 @@ +echo Working out HOME directory +cd ~ +sleep 1s +echo Setting WP Path +HMEPATH="$(pwd)" +sleep 1s +echo Deactivating New Worker +wp plugin deactivate mainwp-child --path=$HMEPATH/public_html/ +sleep 10s +echo Reactivating New Worker +wp plugin activate mainwp-child --path=$HMEPATH/public_html/ +echo DONE