SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
716 B

#!/bin/bash
#This is the central update script for SuperX.
#Activate it in your crontab with for example:
#15 20 * * * root su - superx -c "/home/superx/db/module/update.x" >update.log 2>&1
#This entry in /etc/crontab starts the update exery night at 20:15 o'clock.
. /home/superx/db/bin/SQL_ENV
LOG=$SUPERX_DIR/db/module/superx_update.log
#Stop Tomcat
$SUPERX_DIR/webserver/tomcat/bin/shutdown.sh >$LOG 2>&1
#Dump Database
$SUPERX_DIR/db/install/dump_it.x >>$LOG 2>&1
#Now the Modules are updated:
#uncomment this to release it (examples)
#$SOS_PFAD/sos_update.x >>$LOG 2>&1
#$COB_PFAD/cob_update.x >>$LOG 2>&1
#$SVA_PFAD/sva_update.x >>$LOG 2>&1
$SUPERX_DIR/webserver/tomcat/bin/startup.sh >>$LOG 2>&1