From: Adam Chlipala Date: Sat, 16 Dec 2006 00:31:21 +0000 (+0000) Subject: Change domtool-publish to leave files alone if they don't have the right extension X-Git-Tag: release_2010-11-19~295 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/9bdfa6e37cafe6249c5740859b794dd98ca07d86?hp=71420f8bc34bbe2c76bd368613d4e024072e9817 Change domtool-publish to leave files alone if they don't have the right extension --- diff --git a/scripts/domtool-publish b/scripts/domtool-publish index fad7e85..1e934da 100755 --- a/scripts/domtool-publish +++ b/scripts/domtool-publish @@ -2,18 +2,18 @@ case $1 in apache) - /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/ + /usr/bin/rsync --delete /var/domtool/vhosts/*.vhost /etc/apache2/vhosts/ /etc/init.d/apache2 reload ;; apache-down) /etc/init.d/apache2 stop ;; apache-undown) - /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/ + /usr/bin/rsync --delete /var/domtool/vhosts/*.vhost /etc/apache2/vhosts/ /etc/init.d/apache2 start ;; bind) - /usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/ + /usr/bin/rsync --delete /var/domtool/zones/*.zone /etc/bind/zones/ /bin/cp /var/domtool/named.conf.local /etc/bind/ /etc/init.d/bind9 reload ;;