forked from github/server
fix bug in a python script
do not install crontab anywhere but eressea@gruenbaer
This commit is contained in:
parent
28f17b6a08
commit
de9fec8eed
|
@ -60,11 +60,10 @@ for line in infile.readlines():
|
|||
output = "%s%s.bz2" % (prefix, extension)
|
||||
files = files+[output]
|
||||
if access(filename, R_OK):
|
||||
if (access(output, R_OK)):
|
||||
#print output, "exists, skipping"
|
||||
if access(output, R_OK):
|
||||
continue
|
||||
system("bzip2 %s" % filename)
|
||||
if not access('../wochenbericht.txt'):
|
||||
if not access('../wochenbericht.txt', R_OK):
|
||||
os.symlink('../parteien', '../wochenbericht.txt')
|
||||
extras = [ '../wochenbericht.txt', '../express.txt' ]
|
||||
for extra in extras:
|
||||
|
|
|
@ -27,6 +27,5 @@ install -v $ROOT/process/$prg $DEST/bin/
|
|||
done
|
||||
|
||||
# install crontab, but only on the eressea server:
|
||||
HOST=`hostname`
|
||||
|
||||
[ "gruenbaer" = "$HOST" ] && crontab $ROOT/process/cron/crontab
|
||||
WHOAMI=`whoami`@`hostname`
|
||||
[ "eressea@gruenbaer" = "$WHOAMI" ] && crontab $ROOT/process/cron/crontab
|
||||
|
|
Loading…
Reference in New Issue