FIX #2: added DISABLE_SFTP flag
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ${DISABLE_SFTP} -eq 1 ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "# Configuring ssh"
|
||||
|
||||
# make sure directory exists
|
||||
@@ -23,8 +27,7 @@ if [ -d "${PATH_WEBROOT}/.ssh" ] ; then
|
||||
chmod 0700 "${PATH_WEBROOT}/.ssh"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# configure sshd
|
||||
cat >/etc/ssh/sshd_config.d/sshd.conf <<EOF
|
||||
HostKey ${PATH_SSH_HOST}/ssh_host_rsa_key
|
||||
HostKey ${PATH_SSH_HOST}/ssh_host_ecdsa_key
|
||||
|
||||
Reference in New Issue
Block a user