Annotation of loncom/html/adm/geogebra/commands, revision 1.4
1.1 www 1: currversion=0.0
1.2 raeburn 2: webdir='/home/httpd/html/adm/geogebra/web'
3: if [ -e $webdir ]
1.1 www 4: then
1.2 raeburn 5: if [ -e "$webdir/VERSION" ]
6: then
7: currversion=`cat $webdir/VERSION`
8: fi
1.1 www 9: fi
10: newversion=`cat VERSION`
11: comparison=`echo "$newversion > $currversion" | bc`
12: if [ $comparison -gt 0 ]
13: then
1.2 raeburn 14: if [ -e $webdir ]
15: then
16: rm -rf $webdir
1.3 raeburn 17: if [ -e "$webdir/geogebra_html5.tar.gz" ]
18: then
19: rm "$webdir/geogebra_html5.tar.gz"
20: fi
1.2 raeburn 21: fi
1.4 ! raeburn 22: tar -xzf geogebraweb_4.4.tar.gz
1.2 raeburn 23: mv web $webdir
24: cp VERSION $webdir/VERSION
25: chown -R www:www $webdir
26: find $webdir -type d -exec chmod u=rwx,go-rwx {} \;
1.4 ! raeburn 27: if [ -e "$webdir/geogebraweb_4.4.tar.gz" ]
1.3 raeburn 28: then
1.4 ! raeburn 29: rm "$webdir/geogebraweb_4.4.tar.gz"
1.3 raeburn 30: fi
1.2 raeburn 31: sleep 1
1.1 www 32: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>