diff --git a/env/BI_ENV.sam b/env/BI_ENV.sam index 606805e..9692e14 100644 --- a/env/BI_ENV.sam +++ b/env/BI_ENV.sam @@ -1,7 +1,7 @@ #!/bin/bash # # BI_ENV – gemeinsame Umgebung für BI-Update-/Upgrade-Skripte -# Dieses Skript wird von den BI-Skripten per ". /pfad/BI_ENV" eingebunden +# Dieses Skript wird von den BI-Skripten per ". /home/superx/git/BI_Maintenance/env/BI_ENV" eingebunden # und setzt alle notwendigen Umgebungsvariablen. LANG=de_DE.utf8 export LANG @@ -29,7 +29,7 @@ export JAVA_OPTS="-Xmx1520M -Djava.awt.headless=true \ ########## SuperX / Tomcat-Pfade ########## # Basis-Webapp-Verzeichnis von SuperX -export WEBAPP=/var/lib/tomcat10/webapps/superx +export WEBAPP=/home/superx/webapps/superx # Konfigurationsverzeichnis für BI / edustore export SUPERX_DIR="$WEBAPP/WEB-INF/conf/edustore" diff --git a/update/modules_update_cron.sh.sam b/update/modules_update_cron.sh.sam index d66140d..d1f5bb1 100755 --- a/update/modules_update_cron.sh.sam +++ b/update/modules_update_cron.sh.sam @@ -6,13 +6,13 @@ # Wird typischerweise aus /etc/crontab oder via "crontab -e" aufgerufen. # # 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 -ENV_FILE="/var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/env/BI_ENV" -MAIN_SCRIPT="/var/lib/tomcat10/webapps/superx/WEB-INF/bin/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" +ENV_FILE="/home/superx/git/BI_Maintenance/env/BI_ENV" +MAIN_SCRIPT="/home/superx/git/BI_Maintenance/update/hisinone_bi_qisserver/modules_update.sh" +CRONLOG="/home/superx/git/BI_Maintenance/update/hisinone_bi_qisserver/modules_update.log" # Prüfen, ob ENV vorhanden ist if [ ! -f "$ENV_FILE" ]; then diff --git a/update/systemd/superx_update.service b/update/systemd/superx_update.service index c24b12f..0428901 100644 --- a/update/systemd/superx_update.service +++ b/update/systemd/superx_update.service @@ -6,4 +6,4 @@ Type=oneshot User=superx Group=superx WorkingDirectory=/home/superx -ExecStart=/bin/bash /var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/update/modules_update_cron.sh +ExecStart=/bin/bash /home/superx/git/BI_Maintenance/update/modules_update_cron.sh diff --git a/upgrade/hisinone_bi_qisserver/modules_upgrade.sh b/upgrade/hisinone_bi_qisserver/modules_upgrade.sh index 5844b93..1186242 100755 --- a/upgrade/hisinone_bi_qisserver/modules_upgrade.sh +++ b/upgrade/hisinone_bi_qisserver/modules_upgrade.sh @@ -11,7 +11,7 @@ # anhängen – nur im Fehlerfall oder immer (gesteuert über MAIL_ATTACH_LOGS_MODE). # BI_ENV einbinden (Pfad ggf. anpassen) -. /var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/env/BI_ENV +. /home/superx/git/BI_Maintenance/env/BI_ENV set -u