srchub-old

srchub-old Commit Details


Date:2013-09-27 21:53:00 (11 years 2 months ago)
Author:Natalie Adams
Branch:default
Commit:d7a1cf9cf657
Parents: fce053714a1c
Message:Updating sync mercurial script to test if it is a debian based distro

Changes:
Mindefero/scripts/SyncMercurial.sh (1 diff)

File differences

indefero/scripts/SyncMercurial.sh
11
22
33
4
5
64
5
6
7
8
9
10
711
812
913
#!/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

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.41255s using 14 queries.