Updating sync mercurial script to test if it is a debian based distro
This commit is contained in:
parent
18e191abc0
commit
5ccdbfa305
@ -1,9 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
private_notify="/home/mercurial/tmp/notify.tmp"
|
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
|
if [ -e $private_notify ]; then
|
||||||
rm -f $private_notify
|
rm -f $private_notify
|
||||||
$reload_cmd
|
$reload_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user