diff options
-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 |