File:  [LON-CAPA] / loncom / html / adm / geogebra / commands
Revision 1.2: download - view: text, annotated - select for diffs
Thu Jan 10 05:36:00 2013 UTC (11 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, HEAD
- Improve robustness by not relying on argument in script call in loncaapfiles.lpml - For rich text editor (ckeditor) do some clean up of old editors -- fckeditor
  and htmlarea, if installing on LON-CAPA server with long history
- Add sleep to avoid error occasionally seen when running ./UPDATE
- Eliminate warnings about missing directories
- Include FONTSVERSION for jsMath Fonts and only unzip fonts .zip file if newer
  than FONTSVERSION.

currversion=0.0
webdir='/home/httpd/html/adm/geogebra/web'
if [ -e $webdir ]
then
    if [ -e "$webdir/VERSION" ]
    then
        currversion=`cat $webdir/VERSION`
    fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $webdir ] 
  then
      rm -rf $webdir
  fi
  tar -xzf geogebra_html5.tar.gz
  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

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