From 54dc55376b09fc9616192fab271375f210214aa1 Mon Sep 17 00:00:00 2001 From: Bert Baron Date: Sun, 18 Feb 2018 21:01:02 +0100 Subject: [PATCH] Correct ownership of the symlinks The symbolic links are created as root. I propose to correct them afterwards preventing a potential costly "chown -R /nextcloud" on each restart. --- rootfs/usr/local/bin/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/usr/local/bin/run.sh b/rootfs/usr/local/bin/run.sh index b0e632f..673c121 100644 --- a/rootfs/usr/local/bin/run.sh +++ b/rootfs/usr/local/bin/run.sh @@ -11,6 +11,7 @@ sed -i -e "s//$APC_SHM_SIZE/g" /php/conf.d/apcu.ini \ # Put the configuration and apps into volumes ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null ln -sf /apps2 /nextcloud &>/dev/null +chown -h $UID:$GID /nextcloud/config/config.php /nextcloud/apps2 # Create folder for php sessions if not exists if [ ! -d /data/session ]; then