740ae2c023743fccbf55da4ab92a931814159c7a
[hcoop/domtool2.git] / scripts / domtool-publish
1 #!/bin/sh -e
2
3 case $1 in
4 apache)
5 /usr/bin/rsync --delete /var/domtool/vhosts/* /etc/apache2/
6 echo "I would reload Apache now."
7 # /etc/init.d/apache2 reload
8 ;;
9 bind)
10 /usr/bin/rsync --delete /var/domtool/zones/* /etc/bind/zones/
11 /bin/cp /var/domtool/named.conf.local /etc/bind/
12 echo "I would reload Bind now."
13 # /etc/init.d/bind9 reload
14 ;;
15 exim)
16 /bin/cp /var/domtool/aliases /etc/
17 /bin/cp /var/domtool/aliases.default /etc/
18 /bin/cp /var/domtool/local_domains.cfg /etc/exim4/
19 echo "I would reload Exim now."
20 # /etc/init.d/exim4 reload
21 ;;
22 mailman)
23 /bin/cp /var/domtool/mailman.map /etc/mailman
24 echo "I would reload Mailman now."
25 # /etc/init.d/mailman reload
26 ;;
27 *)
28 echo "Usage: domtool-publish [apache|bind|exim|mailman]"
29 ;;
30 esac