Write /etc/mailman/vhosts_cfg.py
authorAdam Chlipala <adamc@hcoop.net>
Sat, 17 Nov 2007 20:20:26 +0000 (20:20 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sat, 17 Nov 2007 20:20:26 +0000 (20:20 +0000)
scripts/domtool-publish

index 3dce23a..3ce7c7d 100755 (executable)
@@ -50,7 +50,9 @@ case $1 in
                redo_exim
        ;;
        mailman)
                redo_exim
        ;;
        mailman)
-               /bin/cp /var/domtool/mailman.map /etc/mailman
+                /bin/echo "HCOOP_VHOSTS = {" >/etc/mailman/vhosts_cfg.py
+               /bin/cat /var/domtool/mailman.map >>/etc/mailman/vhosts_cfg.py
+                /bin/echo "}" >>/etc/mailman/vhosts_cfg.py
                /etc/init.d/mailman reload
                redo_exim
        ;;
                /etc/init.d/mailman reload
                redo_exim
        ;;