From 1f5e33c832dec12fc5f3d0ab12b648ddc52ad044 Mon Sep 17 00:00:00 2001 From: darta Date: Mon, 31 Jan 2022 18:53:32 +0000 Subject: [PATCH] fix(dd-ctl): replaced missing SRC_FOLDER paths --- dd-ctl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dd-ctl b/dd-ctl index 10403f4..cc49d3a 100755 --- a/dd-ctl +++ b/dd-ctl @@ -406,13 +406,13 @@ upgrade_plugins_moodle(){ mkdir -p /tmp/moodle/local/tresipuntimportgc cp -R local_plugins/moodle/tresipuntimportgc/* /tmp/moodle/local/tresipuntimportgc/ - cp -R /tmp/moodle/* /opt/digitaldemocratic/src/moodle/ + cp -R /tmp/moodle/* $SRC_FOLDER/moodle/ rm -rf /tmp/moodle docker exec -ti isard-apps-moodle php7 admin/cli/purge_caches.php } upgrade_plugins_nextcloud(){ - cp -R isard-apps/docker/nextcloud/themes/* /opt/digitaldemocratic/src/nextcloud/themes/ + cp -R isard-apps/docker/nextcloud/themes/* $SRC_FOLDER/nextcloud/themes/ } upgrade_plugins_wp(){ @@ -420,7 +420,7 @@ upgrade_plugins_wp(){ git clone https://gitlab.com/muplugins-multiste1/muplugins-google-sites.git $SRC_FOLDER/wordpress/wp-content/mu-plugins fi if [ ! -d $SRC_FOLDER/wordpress/wp-content/mu-plugins/.git ]; then - echo "WARNING: /opt/digitaldemocratic/src/wordpress/wp-content/mu-plugins is not a git repository." + echo "WARNING: $SRC_FOLDER/wordpress/wp-content/mu-plugins is not a git repository." echo " This could be due to old installation. To bring all new mu-plugins code for WP" echo " remove that folder and it will be cloned and mantained with git from now on." else @@ -543,10 +543,10 @@ if [ "$OPERATION" = "reset-1714" ]; then rm -rf /opt/digitaldemocratic/backup rm -rf /opt/digitaldemocratic/data/* rm -rf /opt/digitaldemocratic/db/* - rm -rf /opt/digitaldemocratic/src/avatars - rm -rf /opt/digitaldemocratic/src/moodle - rm -rf /opt/digitaldemocratic/src/nextcloud - rm -rf /opt/digitaldemocratic/src/wordpress + rm -rf $SRC_FOLDER/avatars + rm -rf $SRC_FOLDER/moodle + rm -rf $SRC_FOLDER/nextcloud + rm -rf $SRC_FOLDER/wordpress fi if [ "$OPERATION" = "nextcloud-scan" ]; then