--- loncom/html/adm/ckeditor/commands 2011/12/16 19:09:28 1.3 +++ loncom/html/adm/ckeditor/commands 2013/07/16 14:14:51 1.5 @@ -1,5 +1,14 @@ path=`pwd` -cd $1 -echo $path/ckeditor_3.6.2.tar.gz -tar xzf $path/ckeditor_3.6.2.tar.gz +htmldir='/home/httpd/html' +if [ -e "$htmldir/fckeditor" ] +then + rm -rf $htmldir/fckeditor +fi +if [ -e "$htmldir/htmlarea" ] +then + rm -rf $htmldir/htmlarea +fi +cd $htmldir +echo $path/ckeditor_3.6.6.1.tar.gz +tar -zxf $path/ckeditor_3.6.6.1.tar.gz cp $path/loncapaconfig.js ckeditor/loncapaconfig.js