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

...

parent 2766cabf
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2023-12-20
# Installiert eine neue Version vom zugehörigen GIT-Repositorium
# und lädt den Server-Prozess neu.
# Aufruf als root (auf dem Server!):
#
# ./update_from_git
#
PROJECT="xml-validation"
GITLAB_URL=https://gitlab1.ptb.de/vaclab/${PROJECT}/-/archive/master/${PROJECT}-master.tar.gz
DEST_USER=nobody
DEST_GROUP=nobody
# Struktur des tar-Archives herunterladen und gleichzeitig entpacken
curl -s -o - ${GITLAB_URL} | tar -xzf - --strip-components=1
chown -R ${DEST_USER}.${DEST_GROUP} ./
systemctl daemon-reload
systemctl restart ${PROJECT}.service
exit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment