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)