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

Vereinfachtes Installieren von updates (GitLab)

parent 7e2324d4
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:
#
# ./update_from_git
#
PROJECT="cal"
GITLAB_URL=https://gitlab1.ptb.de/vaclab/bur/-/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