Annotation of loncom/html/adm/daxe/commands, revision 1.1
1.1 ! damieng 1: currversion=0
! 2: daxedir='/home/httpd/html/adm/daxe'
! 3: admdir='/home/httpd/html/adm'
! 4: if [ -e $daxedir ]
! 5: then
! 6: if [ -e "$daxedir/VERSION" ]
! 7: then
! 8: currversion=`cat $daxedir/VERSION`
! 9: fi
! 10: fi
! 11: newversion=`cat VERSION`
! 12: comparison=`echo "$newversion > $currversion" | bc`
! 13: if [ $comparison -gt 0 ]
! 14: then
! 15: if [ -e $daxedir ]
! 16: then
! 17: rm -rf $daxedir
! 18: fi
! 19: tar xzf daxe.tar.gz -C $admdir
! 20: cp VERSION $daxedir/VERSION
! 21: chown -R www:www $daxedir
! 22: find $daxedir -type d -exec chmod u=rwx,go-rwx {} \;
! 23: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>