srchub

srchub Commit Details


Date:2013-09-27 21:53:51 (11 years 2 months ago)
Author:Natalie Adams
Branch:master
Commit:5ccdbfa305f949b45cc93c4f69b7c3d4fe3b9cc0
Parents: 18e191abc0d935e8bdf78bd6a7ed498d752247c1
Message:Updating sync mercurial script to test if it is a debian based distro

Changes:

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

Number of commits:
Page rendered in 0.05141s using 14 queries.