summaryrefslogtreecommitdiff
path: root/public/fs/etc/dovecot/dovecot-conf.sh
blob: c0d6366880bc7a9140e1874ea4f80f3c991fd1dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -eu

sitezone="$1"

cfg_script="$0"
cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)

source /root/config/private/config/hostinfo/${sitezone}

sed -e 's/@imaphost@/'"${imaphost}"'/g' \
	"${cfg_srcdir}/dovecot.conf.in"