From 2c2663e03f56149ad4c909858b93fb3c1ea9f271 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 12:03:46 +0200 Subject: setting boca.conf as the info about boca --- boca-1.5.0/tools/updatescore.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'boca-1.5.0/tools/updatescore.sh') diff --git a/boca-1.5.0/tools/updatescore.sh b/boca-1.5.0/tools/updatescore.sh index 65522b7..d8cf8e0 100755 --- a/boca-1.5.0/tools/updatescore.sh +++ b/boca-1.5.0/tools/updatescore.sh @@ -15,8 +15,15 @@ # // You should have received a copy of the GNU General Public License # // along with this program. If not, see . # //////////////////////////////////////////////////////////////////////////////// -# last updated 10/jul/2012 by cassio@ime.usp.br -privatedir=/var/www/boca/src/private/remotescores +# last updated 06/aug/2012 by cassio@ime.usp.br +if [ "`id -u`" != "0" ]; then + echo "Must be run as root" + exit 1 +fi +bocadir=/var/www/boca +[ -r /etc/boca.conf ] && . /etc/boca.conf + +privatedir=$bocadir/src/private/remotescores others=$privatedir/otherservers if [ "$1" == "" -o "$2" == "" ]; then echo "Usage $0 " -- cgit v1.2.3