File:  [LON-CAPA] / loncom / html / adm / ckeditor / commands
Revision 1.9: download - view: text, annotated - select for diffs
Wed Jan 6 21:56:16 2016 UTC (8 years, 5 months ago) by musolffc
Branches: MAIN
CVS tags: version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, HEAD
Fixed version checking that prevented a fresh install of ckeditor

path=`pwd`
htmldir='/home/httpd/html'
currversion=3.62
ckeditordir="$htmldir/ckeditor"
if [ -e $ckeditordir ]
then
  if [ -e "$ckeditordir/VERSION" ]
  then
      currversion=`cat $ckeditordir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $ckeditordir ]
  then
    rm -rf $ckeditordir
  fi
  cd $htmldir
  echo $path/ckeditor_4.4.7.tar.gz
  tar -zxf $path/ckeditor_4.4.7.tar.gz
  cp -r $path/plugins/lcm ckeditor/plugins/
  cp -r $path/plugins/chem ckeditor/plugins/
  cp $path/VERSION ckeditor/VERSION
  cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
  chown -R www:www ckeditor
fi
if [ -e "$htmldir/fckeditor" ]
then
    rm -rf $htmldir/fckeditor
fi
if [ -e "$htmldir/htmlarea" ]
then
    rm -rf $htmldir/htmlarea
fi
if  [ -e "$htmldir/adm/ckeditor" ]
then
    rm -rf $htmldir/adm/ckeditor
fi

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