|
|
|
@ -6,13 +6,13 @@ |
|
|
|
# Wird typischerweise aus /etc/crontab oder via "crontab -e" aufgerufen. |
|
|
|
# Wird typischerweise aus /etc/crontab oder via "crontab -e" aufgerufen. |
|
|
|
# |
|
|
|
# |
|
|
|
# Beispiel (werktags 18:00 Uhr): |
|
|
|
# Beispiel (werktags 18:00 Uhr): |
|
|
|
# 0 18 * * 1-5 /var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/update/hisinone_bi_qisserver/modules_update_cron.sh |
|
|
|
# 0 18 * * 1-5 /home/superx/git/BI_Maintenance/update/hisinone_bi_qisserver/modules_update_cron.sh |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
ENV_FILE="/var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/env/BI_ENV" |
|
|
|
ENV_FILE="/home/superx/git/BI_Maintenance/env/BI_ENV" |
|
|
|
MAIN_SCRIPT="/var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/update/hisinone_bi_qisserver/modules_update.sh" |
|
|
|
MAIN_SCRIPT="/home/superx/git/BI_Maintenance/update/hisinone_bi_qisserver/modules_update.sh" |
|
|
|
CRONLOG="/var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/update/hisinone_bi_qisserver/modules_update.log" |
|
|
|
CRONLOG="/home/superx/git/BI_Maintenance/update/hisinone_bi_qisserver/modules_update.log" |
|
|
|
|
|
|
|
|
|
|
|
# Prüfen, ob ENV vorhanden ist |
|
|
|
# Prüfen, ob ENV vorhanden ist |
|
|
|
if [ ! -f "$ENV_FILE" ]; then |
|
|
|
if [ ! -f "$ENV_FILE" ]; then |
|
|
|
|