summaryrefslogtreecommitdiff
path: root/public/fs/etc/postfix
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-06-13 22:01:11 +0000
committerroot@culturestrings <root@culturestrings>2020-06-13 23:20:46 +0000
commit0a05a5a6eeb4e75a12c8fe71f428d20819e287d6 (patch)
tree63ec8c01b98b6b0a58b00c65357dee5cfa5922ac /public/fs/etc/postfix
parent026bf1b4a9557052a3e5328069e3a994107b8b9f (diff)
downloadculturestrings-0a05a5a6eeb4e75a12c8fe71f428d20819e287d6.tar.bz2
culturestrings-0a05a5a6eeb4e75a12c8fe71f428d20819e287d6.tar.xz
/root/config/private/config/hostname ==> /root/config/private/config/hostinfo/*.
Diffstat (limited to 'public/fs/etc/postfix')
-rwxr-xr-xpublic/fs/etc/postfix/main-cf.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/public/fs/etc/postfix/main-cf.sh b/public/fs/etc/postfix/main-cf.sh
index 840aa9a..da64a67 100755
--- a/public/fs/etc/postfix/main-cf.sh
+++ b/public/fs/etc/postfix/main-cf.sh
@@ -2,9 +2,14 @@
set -eu
+sitezone="$1"
+
+cfg_script="$0"
+cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)
+
source /root/config/private/config/server.domains
-source /root/config/private/config/hostname
+source /root/config/private/config/hostinfo/${sitezone}
sed -e 's/@server_domains@/'"${server_domains}"'/g' \
-e 's/@smtphost@/'"${smtphost}"'/g' \
- "$1"
+ "${cfg_srcdir}/main.cf.in"