diff options
Diffstat (limited to 'public/fs/etc/ssh')
-rwxr-xr-x | public/fs/etc/ssh/sshd-config.sh | 6 |
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" |