fix chmod if dir not exists in php 7.4

This commit is contained in:
2025-07-31 17:20:31 +02:00
parent 671bfc5a99
commit 1857bd66c5

View File

@@ -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 <<EOF