From 1857bd66c5b13345ae0838bef7a8d1bf3a5b7bc0 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 31 Jul 2025 17:20:31 +0200 Subject: [PATCH] fix chmod if dir not exists in php 7.4 --- rootfs-php74/app/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs-php74/app/entrypoint.sh b/rootfs-php74/app/entrypoint.sh index f6ff9a4..74e2b36 100755 --- a/rootfs-php74/app/entrypoint.sh +++ b/rootfs-php74/app/entrypoint.sh @@ -79,7 +79,9 @@ if [ -f /ssh/authorized_keys ] ; then chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys fi -chmod 0700 "${WEBROOT}/.ssh" +if [ -d "${PATH_WEBROOT}/.ssh" ] ; then + chmod 0700 "${PATH_WEBROOT}/.ssh" +fi /usr/sbin/sshd -e cat > /etc/nginx/conf.d/user.conf <