From baacde631fc134e7880ba183647bfdb15d2f6098 Mon Sep 17 00:00:00 2001 From: Zoey Date: Tue, 12 Mar 2024 14:29:37 +0100 Subject: [PATCH] fix #698 Signed-off-by: Zoey --- rootfs/usr/local/bin/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/bin/start.sh b/rootfs/usr/local/bin/start.sh index 938ff126..2fa0345c 100755 --- a/rootfs/usr/local/bin/start.sh +++ b/rootfs/usr/local/bin/start.sh @@ -876,7 +876,7 @@ if [ "$PUID" != "0" ]; then /data \ /run \ /tmp \ - -not -user "$PUID" -or -not -group "$PGID" \ + -not \( -uid "$PUID" -and -gid "$PGID" \) \ -exec chown "$PUID:$PGID" {} \; if [ "$PHP81" = "true" ]; then sed -i "s|user =.*|;user = root|" /data/php/81/php-fpm.d/www.conf @@ -897,7 +897,7 @@ else /data \ /run \ /tmp \ - -not -user 0 -or -not -group 0 \ + -not \( -uid 0 -and -gid 0 \) \ -exec chown 0:0 {} \; if [ "$PHP81" = "true" ]; then sed -i "s|;user =.*|user = root|" /data/php/81/php-fpm.d/www.conf