fix chmod if dir not exists in php 7.4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user