Updated dd-ctl

root 2021-09-29 13:33:59 +02:00
parent f0e4b55201
commit c3979c0988
1 changed files with 10 additions and 1 deletions

11
dd-ctl
View File

@ -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