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
|
chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 0700 "${WEBROOT}/.ssh"
|
if [ -d "${PATH_WEBROOT}/.ssh" ] ; then
|
||||||
|
chmod 0700 "${PATH_WEBROOT}/.ssh"
|
||||||
|
fi
|
||||||
/usr/sbin/sshd -e
|
/usr/sbin/sshd -e
|
||||||
|
|
||||||
cat > /etc/nginx/conf.d/user.conf <<EOF
|
cat > /etc/nginx/conf.d/user.conf <<EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user