diff options
-rw-r--r-- | mailman/mklist.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc index 956a4b2..12d319b 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -12,6 +12,10 @@ LISTWEBDOMAIN="$listwebdomain" OWNER="${owner:-listmaster@$MAILDOMAIN}" LISTLANG="${lang:-en}" +mkpw() { + xkcdpass --numwords 4 --delimiter - || gpw | head -n 1 +} + refreshlists() { existinglists="`/usr/sbin/list_lists -b`" } @@ -28,7 +32,7 @@ mklist() { urlhost="${4:-${LISTWEBDOMAIN:-$emailhost}}" if ! echo "$existinglists" | grep -q "^$list\$"; then - newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "`gpw | head -n 1`" + newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "$(mkpw)" fi LISTNAME="$list_anycase" LISTDESC="$desc" SENDERS="$senders" LISTOWNER="$owner" LISTHOST="$emailhost" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py" config_list -i "$cfgdir/$list.py" "$list" |