From 5c0c6d0d14565eab1e32f99b614fea053de39a0c Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Sat, 13 Jun 2020 23:27:43 +0000 Subject: sshd-config.sh: added the cfg_srcdir logic. --- public/fs/etc/ssh/sshd-config.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/fs/etc/ssh') 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" -- cgit v1.2.3