Annotation of loncom/html/adm/geogebra/commands, revision 1.2

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
        !            17:   fi
        !            18:   tar -xzf geogebra_html5.tar.gz
        !            19:   mv web $webdir
        !            20:   cp VERSION $webdir/VERSION
        !            21:   chown -R www:www $webdir
        !            22:   find $webdir -type d -exec chmod u=rwx,go-rwx {} \;
        !            23:   sleep 1
1.1       www        24: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>