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

...

parent 7c194e9f
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2024-06-12
# 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="vl-dcc"
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