diff options
Diffstat (limited to 'public/fs/etc/postfix')
-rwxr-xr-x | public/fs/etc/postfix/main-cf.sh | 9 |
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" |