Skip to content
Snippets Groups Projects
Commit e9954057 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"refreshAuth" to .service

parent f77a0f71
No related branches found
No related tags found
No related merge requests found
#! /bin/bash #! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2025-06-11 # Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2025-06-18
# Installiert eine neue Version vom zugehörigen GIT-Repositorium # Installiert eine neue Version vom zugehörigen GIT-Repositorium
# und lädt den Server-Prozess neu. # und lädt den Server-Prozess neu.
...@@ -24,9 +24,6 @@ curl -s -o - ${GITLAB_URL} | tar -xzf - --strip-components=1 ...@@ -24,9 +24,6 @@ curl -s -o - ${GITLAB_URL} | tar -xzf - --strip-components=1
chown -R ${DEST_USER}:${DEST_GROUP} ./ chown -R ${DEST_USER}:${DEST_GROUP} ./
# In Datei "/srv/www/data/webapps/js/vl-auth.js" user/passwd aktualisieren:
./refreshAuth
systemctl daemon-reload systemctl daemon-reload
systemctl restart ${PROJECT}.service systemctl restart ${PROJECT}.service
......
...@@ -14,6 +14,7 @@ StandardOutput=null ...@@ -14,6 +14,7 @@ StandardOutput=null
StandardError=null StandardError=null
Restart=no Restart=no
WorkingDirectory=/usr/local/share/webapps-deliverer WorkingDirectory=/usr/local/share/webapps-deliverer
ExecStartPre=/bin/bash -lc './refreshAuth'
ExecStart=/bin/bash -l -c \ ExecStart=/bin/bash -l -c \
"./server ${FLASK_PORT} ${DATA_PATH} ${FLASK_ENV} ${FLASK_DEBUG}" "./server ${FLASK_PORT} ${DATA_PATH} ${FLASK_ENV} ${FLASK_DEBUG}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment