From 30efac2becd6dcc6854bb1e896b9ab579b42c3cc Mon Sep 17 00:00:00 2001 From: Onni Lampi Date: Sat, 16 Aug 2025 12:33:46 +0300 Subject: Containerize the application The containers are orchestrated with systemd. --- deploy_services.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 deploy_services.sh (limited to 'deploy_services.sh') diff --git a/deploy_services.sh b/deploy_services.sh new file mode 100755 index 0000000..9549ed2 --- /dev/null +++ b/deploy_services.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Script deploys the quadlet files to the user specific directories and lets systemd build the service files. +# Finally, it copies the generated service file into a static location and enables it. + +set -euxo pipefail + +export XDG_RUNTIME_DIR="/run/user/$(id -u)" +cp veetibot.build /home/slack-veetibot/.config/containers/systemd/ +cp veetibot.container /home/slack-veetibot/.config/containers/systemd/ +systemctl --user daemon-reload +cp /run/user/1005/systemd/generator/veetibot.service /home/slack-veetibot/.config/systemd/user +systemctl --user enable veetibot -- cgit v1.3