diff --git a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run index 9bdabb9..de81a7b 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run @@ -96,8 +96,8 @@ if vergt "${image_version}" "${installed_version}"; then echo "Initializing finished" fi -echo "Setting permissions" if [ -f /tmp/full_chown ]; then + echo "Setting permissions" lsiown abc:abc -R \ /app/www/public rm -f /tmp/full_chown @@ -107,16 +107,16 @@ lsiown abc:abc \ /data # setup config -if ! occ config:system:get memcache.local; then +if ! occ config:system:get memcache.local >/dev/null 2>&1; then occ config:system:set memcache.local --value='\\OC\\Memcache\\APCu' fi -if ! occ config:system:get memcache.distributed; then +if ! occ config:system:get memcache.distributed >/dev/null 2>&1; then occ config:system:set memcache.distributed --value='\\OC\\Memcache\\Memcached' fi -if ! occ config:system:get datadirectory; then +if ! occ config:system:get datadirectory >/dev/null 2>&1; then occ config:system:set datadirectory --value='/data' fi -if ! occ config:system:get apps_paths || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/apps' || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/custom_apps'; then +if ! occ config:system:get apps_paths >/dev/null 2>&1 || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/apps' || ! occ config:system:get apps_paths | grep -q 'path: /app/www/public/custom_apps'; then occ config:import < <(echo '{"system":{"apps_paths":[{"path":"\/app\/www\/public\/apps","url":"\/apps","writable":false},{"path":"\/app\/www\/public\/custom_apps","url":"\/custom_apps","writable":true}]}}') fi