--- loncom/html/adm/geogebra/commands 2013/01/10 05:36:00 1.2 +++ loncom/html/adm/geogebra/commands 2015/04/04 23:12:42 1.4 @@ -14,11 +14,19 @@ then if [ -e $webdir ] then rm -rf $webdir + if [ -e "$webdir/geogebra_html5.tar.gz" ] + then + rm "$webdir/geogebra_html5.tar.gz" + fi fi - tar -xzf geogebra_html5.tar.gz + tar -xzf geogebraweb_4.4.tar.gz mv web $webdir cp VERSION $webdir/VERSION chown -R www:www $webdir find $webdir -type d -exec chmod u=rwx,go-rwx {} \; + if [ -e "$webdir/geogebraweb_4.4.tar.gz" ] + then + rm "$webdir/geogebraweb_4.4.tar.gz" + fi sleep 1 fi