Merge branch 'develop'
commit
1653ca6ad3
11
dd-ctl
11
dd-ctl
|
@ -8,7 +8,7 @@ if [ -z "$OPERATION" ]; then
|
||||||
set +x
|
set +x
|
||||||
echo "Missing command."
|
echo "Missing command."
|
||||||
echo " Example: ./dd.ctl [operation]"
|
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 " Bring the current project up: ./dd-ctl all"
|
||||||
echo " Build the compose files: ./dd-ctl build"
|
echo " Build the compose files: ./dd-ctl build"
|
||||||
echo " Start the project when stopped: ./dd-ctl up"
|
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
|
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(){
|
setup_moodle(){
|
||||||
echo " --> Applying custom settings in moodle"
|
echo " --> Applying custom settings in moodle"
|
||||||
docker exec -ti isard-apps-moodle php7 admin/cli/cfg.php --name=guestloginbutton --set=0
|
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/nextcloud
|
||||||
rm -rf /opt/digitaldemocratic/src/wordpress
|
rm -rf /opt/digitaldemocratic/src/wordpress
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$OPERATION" = "nextcloud-scan" ]; then
|
||||||
|
nextcloud_scan
|
||||||
|
fi
|
Loading…
Reference in New Issue