File:  [LON-CAPA] / loncom / html / adm / daxe / commands
Revision 1.1: download - view: text, annotated - select for diffs
Thu Dec 3 20:40:36 2015 UTC (8 years, 7 months ago) by damieng
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_4_msu, HEAD
integrated Daxe, opening in a separate window for now

currversion=0
daxedir='/home/httpd/html/adm/daxe'
admdir='/home/httpd/html/adm'
if [ -e $daxedir ]
then
  if [ -e "$daxedir/VERSION" ]
  then
      currversion=`cat $daxedir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $daxedir ]
  then
    rm -rf $daxedir
  fi
  tar xzf daxe.tar.gz -C $admdir
  cp VERSION $daxedir/VERSION
  chown -R www:www $daxedir
  find $daxedir -type d -exec chmod u=rwx,go-rwx {} \;
fi

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