diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-11-03 13:42:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 13:42:19 +0300 |
commit | 21ed7f36bea22ea5020be0a55e09a9996476ff90 (patch) | |
tree | 117a87c382276ac691128af9a711abb9fb57c70f | |
parent | b721b855a9cb8d9603e7a5b5fed0e639a8e91a2e (diff) | |
parent | 68a33f9fe1b6d66b03f53540e442399fe13a488f (diff) |
Merge pull request #173 from nextcloud/enh/noid/link-webpage
link to the webpage for better UX
-rwxr-xr-x | resources/entrypoint.sh | 7 | ||||
-rw-r--r-- | setup | 4 |
2 files changed, 7 insertions, 4 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 @@ -163,10 +163,6 @@ fi # Recreate the htaccess on both install and update $OCC maintenance:update:htaccess -# Apply one-click-instance settings... -$OCC config:system:set one-click-instance --value=true --type=bool -$OCC config:system:set one-click-instance.user-limit --value=100 --type=int - # env var is set from the dockerfile if [ "$NC_IS_PATCHED" = true ]; then $OCC config:system:set integrity.check.disabled --value="true" --type=boolean |