From 1bbf56d597532216d40896a1bfd67c811b1aea9c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:16:06 +0200 Subject: [PATCH] Embed disable check data location https://github.com/alexbelgium/hassio-addons/issues/1531 --- nextcloud/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index a1a1d936f..b7f335de3 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -57,7 +57,12 @@ RUN \ /defaults/nginx/site-confs/default.conf.sample && \ \ # Change location of log - sed -i "s|s6-setuidgid abc php -f /config/www/nextcloud/cron.php|(s6-setuidgid abc php -f /config/www/nextcloud/cron.php) \&>/proc/1/fd/1|g" /etc/crontabs/root + sed -i "s|s6-setuidgid abc php -f /config/www/nextcloud/cron.php|(s6-setuidgid abc php -f /config/www/nextcloud/cron.php) \&>/proc/1/fd/1|g" /etc/crontabs/root && \ + \ + # Disable data check at installation + echo "... Disabling check_data_directory_permissions" >> /etc/s6-overlay/s6-rc.d/init-nextcloud-config/run && \ + echo "sed -i \"/check_data_directory_permissions/d\" /config/www/nextcloud/config/config.php || true" >> /etc/s6-overlay/s6-rc.d/init-nextcloud-config/run && \ + echo "sed -i \"/datadirectory/a\ \ 'check_data_directory_permissions' => false,\" /config/www/nextcloud/config/config.php || true" >> /etc/s6-overlay/s6-rc.d/init-nextcloud-config/run # Global LSIO modifications ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"