commit 7e043a4b3ba0738628475f501bede5aa792644fa parent fce6c85a98829d24c8d7b79313f7f5b698fe9e93 Author: Florian Dold <florian@dold.me> Date: Wed, 5 Jun 2024 12:55:47 +0200 separate host units, create sandcastle-up helper Diffstat:
6 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/host/README.md b/host/README.md @@ -0,0 +1,2 @@ +This directory contains scripts and config files that are meant to be used on the host +of sandcastle, i.e. the machine running podman, and not *inside* sandcastle. diff --git a/systemd/container-taler-sandcastle-demo.service b/host/container-taler-sandcastle-demo.service diff --git a/systemd/container-taler-sandcastle-head.service b/host/container-taler-sandcastle-head.service diff --git a/systemd/container-taler-sandcastle-liebe.service b/host/container-taler-sandcastle-liebe.service diff --git a/systemd/container-taler-sandcastle-test.service b/host/container-taler-sandcastle-test.service diff --git a/host/sandcastle-up b/host/sandcastle-up @@ -0,0 +1,25 @@ +#!/bin/bash + +set -eu +set -x + +case $USER in + demo|taler-demo) + unitfile=container-taler-sandcastle-demo.service + ;; + test|taler-test) + unitfile=container-taler-sandcastle-test.service + ;; + *) + echo This script does not know how to update sandcastle for user $USER + exit 1 + ;; +esac + +cd $HOME/sandcastle-ng + +git pull + +./sandcastle-build + +systemctl --user restart $unitfile