From c3979c0988f5d871572bca97ff241ee1ec02ed35 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Sep 2021 13:33:59 +0200 Subject: [PATCH] Updated dd-ctl --- dd-ctl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dd-ctl b/dd-ctl index 886a149..e523c16 100755 --- a/dd-ctl +++ b/dd-ctl @@ -8,7 +8,7 @@ if [ -z "$OPERATION" ]; then set +x echo "Missing command." echo " Example: ./dd.ctl [operation]" - echo " Update repository: ./dd-ctl update-repo [branch-name] (defaults to master)" + echo " Update repository: ./dd-ctl repo-update [branch-name] (defaults to master)" echo " Bring the current project up: ./dd-ctl all" echo " Build the compose files: ./dd-ctl build" echo " Start the project when stopped: ./dd-ctl up" @@ -155,6 +155,11 @@ setup_nextcloud(){ docker exec isard-apps-nextcloud-app sed -ie 's/\(\s\+min-height: calc(100% - \)50\(px);\)/\175\2/' /var/www/html/custom_apps/onlyoffice/css/editor.css } +nextcloud_scan(){ + # The folders shown as 'not writeable' are empty user folders. Not a problem. + docker exec -ti isard-apps-nextcloud-app /bin/sh -c "su - www-data -s /bin/sh -c 'PHP_MEMORY_LIMIT=512M php /var/www/html/occ files:scan --all'" +} + setup_moodle(){ echo " --> Applying custom settings in moodle" docker exec -ti isard-apps-moodle php7 admin/cli/cfg.php --name=guestloginbutton --set=0 @@ -405,3 +410,7 @@ if [ "$OPERATION" = "reset-1714" ]; then rm -rf /opt/digitaldemocratic/src/nextcloud rm -rf /opt/digitaldemocratic/src/wordpress fi + +if [ "$OPERATION" = "nextcloud-scan" ]; then + nextcloud_scan +fi \ No newline at end of file