1 |
tdb |
1.1 |
#!/bin/sh |
2 |
|
|
|
3 |
|
|
# |
4 |
|
|
# i-scream website updater (using cvsup) |
5 |
|
|
# this should usually be run from a regular crontab |
6 |
|
|
# |
7 |
|
|
# written by tdb1 30/06/2001 |
8 |
|
|
# |
9 |
|
|
|
10 |
|
|
CVSUP="/usr/bin/cvsup" |
11 |
|
|
CVSUPSWITCHES="-Z -L 0 -g -1" |
12 |
|
|
CVSUPSUPFILE="/home/sites/www.i-scream.org.uk/cvsup/supfile" |
13 |
|
|
|
14 |
|
|
CVSUPCMD="${CVSUP} ${CVSUPSWITCHES} ${CVSUPSUPFILE}" |
15 |
|
|
|
16 |
|
|
STOPFILE="/home/sites/www.i-scream.org.uk/web/STOP.UPDATES" |
17 |
|
|
|
18 |
|
|
if test -r "${STOPFILE}"; then \ |
19 |
|
|
echo "update blocked by ${STOPFILE}"; \ |
20 |
|
|
else \ |
21 |
|
|
${CVSUPCMD}; \ |
22 |
|
|
fi |
23 |
|
|
|