diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-11-02 01:16:05 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-11-02 01:16:05 +0100 |
commit | 076231507cc426e772da6c22aaeaa2b25cf22528 (patch) | |
tree | dbbe327ca0a8ef17e6a9d9ec2a8eff96e8592417 /mailman | |
parent | 58732a1f6e5ce0650f2c86c8807ed11d8276a4c6 (diff) |
Support setting emailhost and urlhost.
Diffstat (limited to 'mailman')
-rw-r--r-- | mailman/mklist.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc index d3bd5c9..364467f 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -8,6 +8,7 @@ skeldir="$sharedir/skel" MAILDOMAIN="${maildomain:-`head -n 1 /etc/mailname`}" LISTDOMAIN="${listdomain:-lists.$MAILDOMAIN}" +LISTWEBDOMAIN="$listwebdomain" OWNER="${owner:-listmaster@$MAILDOMAIN}" LISTLANG="${lang:-en}" @@ -21,9 +22,11 @@ mklist() { desc="$1"; shift lang="${1:-$LISTLANG}" owner="${2:-$OWNER}" + emailhost="${3:-$LISTDOMAIN}" + urlhost="${4:-$LISTWEBDOMAIN}" if ! echo "$existinglists" | grep -q "^$list\$"; then - newlist -l "$lang" -q "$list" "$owner" "`gpw | head -n 1`" + newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "`gpw | head -n 1`" fi LISTNAME="$list" LISTDESC="$desc" LISTOWNER="$owner" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py" config_list -i "$cfgdir/$list.py" "$list" |