From 145c787615676e22404b9986f215fd36721717f0 Mon Sep 17 00:00:00 2001 From: Magicalex Date: Sun, 29 Dec 2019 00:14:26 +0100 Subject: [PATCH] fix(): broken symlink --- rootfs/usr/local/bin/startup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/bin/startup b/rootfs/usr/local/bin/startup index 80575df..b115b82 100644 --- a/rootfs/usr/local/bin/startup +++ b/rootfs/usr/local/bin/startup @@ -18,8 +18,8 @@ sed -i "s//${OPCACHE_MEMORY_LIMIT}/g" /etc/php7/conf.d/00_ # Set permissions for folder in /services /var/log /var/lib/nginx; do - find ${folder} ! -user "${UID}" -exec chown "${UID}:${GID}" {} \; - find ${folder} ! -group "${GID}" -exec chown "${UID}:${GID}" {} \; + find ${folder} ! -user "${UID}" -exec chown -h "${UID}:${GID}" {} \; + find ${folder} ! -group "${GID}" -exec chown -h "${UID}:${GID}" {} \; done # Set log output to STDOUT if wanted (LOG_TO_STDOUT=true)