From 191fd62835a9262ddf3a515053f7263cdc68c814 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Wed, 14 Sep 2022 14:44:09 +0200 Subject: [PATCH] make sure nextclouds config.php is only readable by user www-data --- setup/nextcloud.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 2b274d05..481b2d2a 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -347,6 +347,7 @@ echo ";"; ?> EOF chown www-data.www-data $STORAGE_ROOT/owncloud/config.php +chmod 640 $STORAGE_ROOT/owncloud/config.php # Enable/disable apps. Note that this must be done after the Nextcloud setup. # The firstrunwizard gave Josh all sorts of problems, so disabling that.