File:  [LON-CAPA] / loncom / html / adm / jsme / commands
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jun 26 14:35:37 2023 UTC (14 months, 2 weeks ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Update JSME to 2022-09-26 version.

currversion=0
jsmedir='/home/httpd/html/adm/jsme'
if [ -e $jsmedir ]
then
  if [ -e "$jsmedir/VERSION" ]
  then
      currversion=`cat $jsmedir/VERSION`
  fi
fi
newversion=`cat VERSION`
comparison=`echo "$newversion > $currversion" | bc`
if [ $comparison -gt 0 ]
then
  if [ -e $jsmedir ]
  then
    rm -rf $jsmedir
  fi
  unzip -q -o -d $jsmedir JSME_2022-09-26.zip
  mv $jsmedir/JSME_2022-09-26/jsme/* $jsmedir/.
  mv $jsmedir/JSME_2022-09-26/license.txt $jsmedir/license.txt
  rm -r $jsmedir/JSME_2022-09-26
  cp VERSION $jsmedir/VERSION
  chown -R www:www $jsmedir
  find $jsmedir -type d -exec chmod u=rwx,go-rwx {} \;
fi

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