diff -r fce053714a1c7504444f6f30b2515cc965eead15 -r d7a1cf9cf657c7f6f20e3fb60e42fe333be22ed7 indefero/scripts/SyncMercurial.sh --- a/indefero/scripts/SyncMercurial.sh Sat Aug 17 14:32:11 2013 -0500 +++ b/indefero/scripts/SyncMercurial.sh Fri Sep 27 21:53:51 2013 -0500 @@ -1,9 +1,13 @@ #!/bin/sh private_notify="/home/mercurial/tmp/notify.tmp" -# reload_cmd="/usr/sbin/apachectl -k graceful" -reload_cmd="sudo /etc/init.d/apache2 reload" +# Test for debian systems +if [ -e /etc/debian_version ]; then + reload_cmd="sudo /etc/init.d/apache2 reload" +else + reload_cmd="/usr/sbin/apachectl -k graceful" +fi if [ -e $private_notify ]; then rm -f $private_notify $reload_cmd