chmod only if dir exists

This commit is contained in:
2025-07-31 09:34:57 +02:00
parent 9b5adecca0
commit d4a3894a93

View File

@@ -16,4 +16,6 @@ if [ -f /ssh/authorized_keys ] ; then
chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys
fi
if [ -d "${PATH_WEBROOT}/.ssh" ] ; then
chmod 0700 "${PATH_WEBROOT}/.ssh"
fi