diff options
author | Jonas Smedegaard <dr@jones.dk> | 2003-06-28 09:53:50 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2003-06-28 09:53:50 +0000 |
commit | dec524e14a35b6cbd683d4ad4f3e808dd2c1c9a5 (patch) | |
tree | f880160bf84d9dc9c2c292f0a420a6de46aa49e3 | |
parent | 206d8539bae6834b63d822a8b22e430037b51fb5 (diff) |
New script added to reset all URLs the the default ones.
-rwxr-xr-x | mailman/reset-all-url.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mailman/reset-all-url.sh b/mailman/reset-all-url.sh new file mode 100755 index 0000000..a2a8d7e --- /dev/null +++ b/mailman/reset-all-url.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# /etc/mailman/reset-all-url.sh +# Copyright 2003 Jonas Smedegaard <dr@jones.dk> +# +# $Id: reset-all-url.sh,v 1.1 2003-06-28 09:53:50 jonas Exp $ +# +# Reset URL for all local mailman mailinglists to the default ones +# + +if [ -x /usr/lib/mailman/bin/list_lists -a -x /usr/lib/mailman/bin/config_list ]; then + for list in `/usr/lib/mailman/bin/list_lists --bare`; do + /usr/lib/mailman/bin/withlist -l -r fix_url $list + done +else + echo "This script requires Mailman 2.1" +fi |