FIX #2: added DISABLE_SFTP flag

This commit is contained in:
2025-07-31 15:26:45 +02:00
parent 21f3e27039
commit 796341c7a0
2 changed files with 7 additions and 2 deletions

View File

@@ -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