summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
261e79e)
More compatible with sysvinit and systemd
/bin/echo -n "domainlist mm_domains = " >>/etc/exim4/conf.d/main/10_domtool-domains
/bin/cat /var/domtool/mailman_domains.cfg >>/etc/exim4/conf.d/main/10_domtool-domains
/bin/echo "" >>/etc/exim4/conf.d/main/10_domtool-domains
/bin/echo -n "domainlist mm_domains = " >>/etc/exim4/conf.d/main/10_domtool-domains
/bin/cat /var/domtool/mailman_domains.cfg >>/etc/exim4/conf.d/main/10_domtool-domains
/bin/echo "" >>/etc/exim4/conf.d/main/10_domtool-domains
- /etc/init.d/exim4 reload
}
case $1 in
apache)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
}
case $1 in
apache)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
- /etc/init.d/apache2 reload
- /etc/init.d/apache2 stop
;;
apache-undown)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
;;
apache-undown)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
- /etc/init.d/apache2 start
;;
apache1.3)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache/vhosts/
;;
apache1.3)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache/vhosts/
- /etc/init.d/apache reload
- /etc/init.d/apache stop
;;
apache1.3-undown)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache/vhosts/
;;
apache1.3-undown)
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache/vhosts/
- /etc/init.d/apache start
;;
bind)
/usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/
;;
bind)
/usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/
/bin/cp /var/domtool/named.conf.local /etc/bind/
/bin/chown root:bind /etc/bind/named.conf.local
/bin/chmod 644 /etc/bind/named.conf.local
/bin/cp /var/domtool/named.conf.local /etc/bind/
/bin/chown root:bind /etc/bind/named.conf.local
/bin/chmod 644 /etc/bind/named.conf.local
- /etc/init.d/bind9 restart
;;
exim)
/bin/cp /var/domtool/aliases /etc/aliases.hosted
;;
exim)
/bin/cp /var/domtool/aliases /etc/aliases.hosted
/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
/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
;;
users)
/bin/cp /var/domtool/waklog.conf /etc/apache2/
;;
users)
/bin/cp /var/domtool/waklog.conf /etc/apache2/
- /etc/init.d/apache2 reload
;;
firewall)
# Ideally this would check if the config worked first
;;
firewall)
# Ideally this would check if the config worked first
# least). Does it need to chown/chmod the generated
# rules?
/bin/cp /var/domtool/firewall/*.conf /etc/ferm/
# least). Does it need to chown/chmod the generated
# rules?
/bin/cp /var/domtool/firewall/*.conf /etc/ferm/
- /etc/init.d/ferm reload
;;
firewallpuppet)
# new firewall publishing method that integrates with puppet (sort of)
/bin/cp /var/domtool/firewall/*.conf /etc/ferm/
if [ ! -d /etc/puppetlabs ]; then
# legacy node
;;
firewallpuppet)
# new firewall publishing method that integrates with puppet (sort of)
/bin/cp /var/domtool/firewall/*.conf /etc/ferm/
if [ ! -d /etc/puppetlabs ]; then
# legacy node
- /etc/init.d/ferm reload
exit
fi
if ( /usr/sbin/ferm --noexec /etc/ferm/ferm.conf ); then
exit
fi
if ( /usr/sbin/ferm --noexec /etc/ferm/ferm.conf ); then