chmod only if dir exists
This commit is contained in:
@@ -16,4 +16,6 @@ if [ -f /ssh/authorized_keys ] ; then
|
||||
chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys
|
||||
fi
|
||||
|
||||
chmod 0700 "${PATH_WEBROOT}/.ssh"
|
||||
if [ -d "${PATH_WEBROOT}/.ssh" ] ; then
|
||||
chmod 0700 "${PATH_WEBROOT}/.ssh"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user