diff options
Diffstat (limited to 'resources/entrypoint.sh')
-rwxr-xr-x | resources/entrypoint.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/entrypoint.sh b/resources/entrypoint.sh index 14844e4..d292e19 100755 --- a/resources/entrypoint.sh +++ b/resources/entrypoint.sh @@ -1,4 +1,11 @@ #!/usr/bin/env bash +if [ -f "/var/www/html/occ" ]; then + # Apply one-click-instance settings... + sudo -u www-data php /var/www/html/occ config:system:set one-click-instance --value=true --type=bool + sudo -u www-data php /var/www/html/occ config:system:set one-click-instance.user-limit --value=100 --type=int + sudo -u www-data php /var/www/html/occ config:system:set one-click-instance.link --value="https://nextcloud.com/univention/" + sudo -u www-data php /var/www/html/occ app:enable support +fi service cron start && \ rm /var/run/apache2/apache2.pid 2>/dev/null || true && \ /usr/sbin/apache2ctl -D FOREGROUND |