summaryrefslogtreecommitdiff
path: root/public/fs/etc/ssh
diff options
context:
space:
mode:
Diffstat (limited to 'public/fs/etc/ssh')
-rwxr-xr-xpublic/fs/etc/ssh/sshd-config.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/fs/etc/ssh/sshd-config.sh b/public/fs/etc/ssh/sshd-config.sh
index be19a20..71fd1ad 100755
--- a/public/fs/etc/ssh/sshd-config.sh
+++ b/public/fs/etc/ssh/sshd-config.sh
@@ -2,6 +2,10 @@
set -eu
+cfg_script="$0"
+cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)
+
source /root/config/private/config/server.ports
-sed -e 's/@ssh_port@/'${ssh_port}'/g' "$1"
+sed -e 's/@ssh_port@/'${ssh_port}'/g' \
+ "${cfg_srcdir}/sshd_config.in"