Diff for /loncom/html/adm/geogebra/commands between versions 1.1 and 1.2

version 1.1, 2012/08/17 22:52:24 version 1.2, 2013/01/10 05:36:00
Line 1 Line 1
 currversion=0.0  currversion=0.0
 if [ -e "$1/VERSION" ]  webdir='/home/httpd/html/adm/geogebra/web'
   if [ -e $webdir ]
 then  then
   currversion=`cat $1/VERSION`      if [ -e "$webdir/VERSION" ]
       then
           currversion=`cat $webdir/VERSION`
       fi
 fi  fi
 newversion=`cat VERSION`  newversion=`cat VERSION`
 comparison=`echo "$newversion > $currversion" | bc`  comparison=`echo "$newversion > $currversion" | bc`
 if [ $comparison -gt 0 ]  if [ $comparison -gt 0 ]
 then  then
   rm -rf $1/    if [ -e $webdir ] 
   tar -xvf geogebra_html5.tar.gz    then
   mv web $1        rm -rf $webdir
   cp VERSION $1/VERSION    fi
   chown -R www:www $1    tar -xzf geogebra_html5.tar.gz
   find $1 -type d -exec chmod u=rwx,go-rwx {} \;    mv web $webdir
     cp VERSION $webdir/VERSION
     chown -R www:www $webdir
     find $webdir -type d -exec chmod u=rwx,go-rwx {} \;
     sleep 1
 fi  fi

Removed from v.1.1  
changed lines
  Added in v.1.2


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