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.
This commit is contained in:
Bert Baron 2018-02-18 21:01:02 +01:00 committed by GitHub
parent 4fddb32b2c
commit 54dc55376b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ sed -i -e "s/<APC_SHM_SIZE>/$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