summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-06-13 23:27:43 +0000
committerroot@culturestrings <root@culturestrings>2020-06-13 23:46:37 +0000
commit5c0c6d0d14565eab1e32f99b614fea053de39a0c (patch)
tree36b135a01e9d6f367a17349dfdfd27c6105d682d /public
parente19e53a4c578ffea6d2771c564e5ecc47dd1b825 (diff)
downloadculturestrings-5c0c6d0d14565eab1e32f99b614fea053de39a0c.tar.bz2
culturestrings-5c0c6d0d14565eab1e32f99b614fea053de39a0c.tar.xz
sshd-config.sh: added the cfg_srcdir logic.
Diffstat (limited to 'public')
-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"