diff options
| author | cassiopc <cassiopc@gmail.com> | 2012-08-06 10:03:46 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2012-08-06 10:03:46 +0000 |
| commit | 2c2663e03f56149ad4c909858b93fb3c1ea9f271 (patch) | |
| tree | bab9c28063c976ffd17abb989da871e402063984 /boca-1.5.0/tools/updatescore.sh | |
| parent | b3dcfc7cfa76a09bcd6cdfddaf7897b88b98aa20 (diff) | |
| download | boca-2c2663e03f56149ad4c909858b93fb3c1ea9f271.tar.gz boca-2c2663e03f56149ad4c909858b93fb3c1ea9f271.zip | |
setting boca.conf as the info about boca
Diffstat (limited to 'boca-1.5.0/tools/updatescore.sh')
| -rwxr-xr-x | boca-1.5.0/tools/updatescore.sh | 11 |
1 files changed, 9 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. # //////////////////////////////////////////////////////////////////////////////// -# 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 <remotescorefolder> <serversfile>" |