Browse Source

Umgebung und Script für Modulupgrades #1

master
Daniel Quathamer 2 years ago
parent
commit
072354ab8e
  1. 2
      env/BI_ENV.sam
  2. 8
      upgrade/hisinone_bi_qisserver/modules_upgrade.sh

2
env/BI_ENV.sam vendored

@ -19,7 +19,7 @@ export MEM
QISSERVER_PFAD=$WEBAPP/../qisserver QISSERVER_PFAD=$WEBAPP/../qisserver
QISSERVER_LIB_PFAD=$QISSERVER_PFAD/WEB-INF/lib QISSERVER_LIB_PFAD=$QISSERVER_PFAD/WEB-INF/lib
QIS_CLASSPATH="$TOMCAT_PATH/lib/servlet-api.jar:$QISSERVER_PFAD/WEB-INF/classes" ; for i in `ls $QISSERVER_LIB_PFAD/*.jar` ; do QIS_CLASSPATH=$QIS_CLASSPATH:$i ; done QIS_CLASSPATH="$WEBAPP/WEB-INF/lib_ext/servlet-api.jar:$QISSERVER_PFAD/WEB-INF/classes" ; for i in `ls $QISSERVER_LIB_PFAD/*.jar` ; do QIS_CLASSPATH=$QIS_CLASSPATH:$i ; done
export QIS_CLASSPATH export QIS_CLASSPATH

8
upgrade/hisinone_bi_qisserver/modules_upgrade.sh

@ -35,8 +35,6 @@ echo "Start BI-Upgrades " >$MASTERLOG
date >>$MASTERLOG date >>$MASTERLOG
# #
cd $WEBAPP
java -Xmx${MEM} -cp "$QIS_CLASSPATH" -Dfile.encoding=UTF-8 de.his.edustore.modules.WebFrontendForModuleInstall kern upgrade '$SUPERX_DIR=/disk1/webapps/superx/WEB-INF/conf/edustore'
executeUpgrade() executeUpgrade()
@ -48,10 +46,12 @@ executeUpgrade()
MODULLOG=$LOGPFAD/"$MODUL_UPPER"_upgrade.log MODULLOG=$LOGPFAD/"$MODUL_UPPER"_upgrade.log
echo "Start MODUL $MODUL_UPPER " >>$MYMASTERLOG echo "Start MODUL $MODUL_UPPER " >>$MYMASTERLOG
date >>$MYMASTERLOG date >>$MYMASTERLOG
java -Xmx${MEM} -cp "$QIS_CLASSPATH" -Dfile.encoding=UTF-8 de.his.edustore.modules.WebFrontendForModuleInstall $MODUL upgrade '$SUPERX_DIR='$WEBAPP'/WEB-INF/conf/edustore $'$MODUL_UPPER'_PFAD='$WEBAPP'/WEB-INF/conf/edustore/db/module/sos' echo Executing java -Xmx${MEM} -cp "$QIS_CLASSPATH" -Dfile.encoding=UTF-8 de.his.edustore.modules.WebFrontendForModuleInstall $MODUL upgrade '$SUPERX_DIR='$WEBAPP'/WEB-INF/conf/edustore $'$MODUL_UPPER'_PFAD='$WEBAPP'/WEB-INF/conf/edustore/db/module/sos' >>$MYMASTERLOG 2>&1
java -Xmx${MEM} -cp "$QIS_CLASSPATH" -Dfile.encoding=UTF-8 de.his.edustore.modules.WebFrontendForModuleInstall $MODUL upgrade '$SUPERX_DIR='$WEBAPP'/WEB-INF/conf/edustore $'$MODUL_UPPER'_PFAD='$WEBAPP'/WEB-INF/conf/edustore/db/module/sos' >>$MYMASTERLOG 2>&1
RETURN_CODE=$? RETURN_CODE=$?
echo "End Upgrade $MODUL " >>$MYMASTERLOG echo "End Upgrade $MODUL with RETURN_CODE $RETURN_CODE" >>$MYMASTERLOG
date >>$MYMASTERLOG date >>$MYMASTERLOG
if [ $RETURN_CODE -eq 0 -a "$MAILPROG" != "" ] if [ $RETURN_CODE -eq 0 -a "$MAILPROG" != "" ]
then then

Loading…
Cancel
Save