diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-10-26 14:34:47 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-10-26 14:34:47 +0000 |
| commit | 7e2f9683036dd78f9ac4897b55f07f6286008a37 (patch) | |
| tree | c065315cb2a7ad549b0eb98c38dd2fed2448c42d | |
| parent | 795248734dd0d882fab472e39a3b79d977d4172f (diff) | |
| download | boca-7e2f9683036dd78f9ac4897b55f07f6286008a37.tar.gz boca-7e2f9683036dd78f9ac4897b55f07f6286008a37.zip | |
bug fixed about score file name in updatescore.sh, and inclusion of installboca.sh update itself
| -rwxr-xr-x | boca-1.5.2/tools/etc/icpc/installboca.sh | 5 | ||||
| -rw-r--r-- | boca-1.5.2/tools/icpc.etc.tgz | bin | 9493 -> 9525 bytes | |||
| -rwxr-xr-x | boca-1.5.2/tools/updatescore.sh | 8 |
3 files changed, 11 insertions, 2 deletions
diff --git a/boca-1.5.2/tools/etc/icpc/installboca.sh b/boca-1.5.2/tools/etc/icpc/installboca.sh index d1cb842..55d8d18 100755 --- a/boca-1.5.2/tools/etc/icpc/installboca.sh +++ b/boca-1.5.2/tools/etc/icpc/installboca.sh @@ -151,6 +151,11 @@ cp -f safeexec /usr/bin chmod 4555 /usr/bin/safeexec [ -d /bocajail/usr/bin ] && cp -a /usr/bin/safeexec /bocajail/usr/bin/ +if [ -f /etc/icpc/installboca.sh ]; then + cp $basedir/boca/tools/etc/icpc/installboca.sh /etc/icpc/installboca.sh + chmod 700 /etc/icpc/installboca.sh +fi + echo "==================================================" echo "=================== SERVER SETUP ===============" echo "==================================================" diff --git a/boca-1.5.2/tools/icpc.etc.tgz b/boca-1.5.2/tools/icpc.etc.tgz Binary files differindex f537585..0e4380c 100644 --- a/boca-1.5.2/tools/icpc.etc.tgz +++ b/boca-1.5.2/tools/icpc.etc.tgz diff --git a/boca-1.5.2/tools/updatescore.sh b/boca-1.5.2/tools/updatescore.sh index fc3ea83..6cf9489 100755 --- a/boca-1.5.2/tools/updatescore.sh +++ b/boca-1.5.2/tools/updatescore.sh @@ -115,8 +115,12 @@ while /bin/true; do chown $apacheuser.root "$fscore" chmod 660 "$fscore" bfscore=`basename $fscore` - mv "$fscore" "$privatedir/score_$bfscore" - echo "Score downloaded successfully into $privatedir/score_$bfscore" + hasscore=`echo $bfscore | cut -d'_' -f1` + if [ "$hasscore" != "score" ]; then + bfscore=score_$bfscore + fi + mv "$fscore" "$privatedir/$bfscore" + echo "Score downloaded successfully into $privatedir/$bfscore" done else echo "Error: score file from $BOCASERVER is not a valid package" |