fix(dd-ctl): replaced missing SRC_FOLDER paths
parent
5337c2ac17
commit
1f5e33c832
14
dd-ctl
14
dd-ctl
|
@ -406,13 +406,13 @@ upgrade_plugins_moodle(){
|
||||||
mkdir -p /tmp/moodle/local/tresipuntimportgc
|
mkdir -p /tmp/moodle/local/tresipuntimportgc
|
||||||
cp -R local_plugins/moodle/tresipuntimportgc/* /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
|
rm -rf /tmp/moodle
|
||||||
docker exec -ti isard-apps-moodle php7 admin/cli/purge_caches.php
|
docker exec -ti isard-apps-moodle php7 admin/cli/purge_caches.php
|
||||||
}
|
}
|
||||||
|
|
||||||
upgrade_plugins_nextcloud(){
|
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(){
|
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
|
git clone https://gitlab.com/muplugins-multiste1/muplugins-google-sites.git $SRC_FOLDER/wordpress/wp-content/mu-plugins
|
||||||
fi
|
fi
|
||||||
if [ ! -d $SRC_FOLDER/wordpress/wp-content/mu-plugins/.git ]; then
|
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 " 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."
|
echo " remove that folder and it will be cloned and mantained with git from now on."
|
||||||
else
|
else
|
||||||
|
@ -543,10 +543,10 @@ if [ "$OPERATION" = "reset-1714" ]; then
|
||||||
rm -rf /opt/digitaldemocratic/backup
|
rm -rf /opt/digitaldemocratic/backup
|
||||||
rm -rf /opt/digitaldemocratic/data/*
|
rm -rf /opt/digitaldemocratic/data/*
|
||||||
rm -rf /opt/digitaldemocratic/db/*
|
rm -rf /opt/digitaldemocratic/db/*
|
||||||
rm -rf /opt/digitaldemocratic/src/avatars
|
rm -rf $SRC_FOLDER/avatars
|
||||||
rm -rf /opt/digitaldemocratic/src/moodle
|
rm -rf $SRC_FOLDER/moodle
|
||||||
rm -rf /opt/digitaldemocratic/src/nextcloud
|
rm -rf $SRC_FOLDER/nextcloud
|
||||||
rm -rf /opt/digitaldemocratic/src/wordpress
|
rm -rf $SRC_FOLDER/wordpress
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$OPERATION" = "nextcloud-scan" ]; then
|
if [ "$OPERATION" = "nextcloud-scan" ]; then
|
||||||
|
|
Loading…
Reference in New Issue