Annotation of loncom/html/adm/ckeditor/commands, revision 1.8
1.1 faziophi 1: path=`pwd`
1.4 raeburn 2: htmldir='/home/httpd/html'
1.7 damieng 3: currversion=4.47
1.6 raeburn 4: ckeditordir="$htmldir/ckeditor"
5: if [ -e $ckeditordir ]
6: then
7: if [ -e "$ckeditordir/VERSION" ]
8: then
9: currversion=`cat $ckeditordir/VERSION`
10: fi
11: fi
12: newversion=`cat VERSION`
13: comparison=`echo "$newversion > $currversion" | bc`
14: if [ $comparison -gt 0 ]
15: then
16: if [ -e $ckeditordir ]
17: then
18: rm -rf $ckeditordir
19: fi
20: cd $htmldir
1.7 damieng 21: echo $path/ckeditor_4.4.7.tar.gz
22: tar -zxf $path/ckeditor_4.4.7.tar.gz
23: cp -r $path/plugins/lcm ckeditor/plugins/
1.8 ! damieng 24: cp -r $path/plugins/chem ckeditor/plugins/
1.6 raeburn 25: cp $path/VERSION ckeditor/VERSION
26: cp $path/loncapaconfig.js ckeditor/loncapaconfig.js
27: chown -R www:www ckeditor
28: fi
1.4 raeburn 29: if [ -e "$htmldir/fckeditor" ]
30: then
31: rm -rf $htmldir/fckeditor
32: fi
33: if [ -e "$htmldir/htmlarea" ]
34: then
35: rm -rf $htmldir/htmlarea
36: fi
1.6 raeburn 37: if [ -e "$htmldir/adm/ckeditor" ]
38: then
39: rm -rf $htmldir/adm/ckeditor
40: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>