diff options
| author | Onni Lampi <contact@onnilampi.fi> | 2025-08-16 12:33:46 +0300 |
|---|---|---|
| committer | Onni Lampi <contact@onnilampi.fi> | 2025-08-16 17:18:29 +0300 |
| commit | 30efac2becd6dcc6854bb1e896b9ab579b42c3cc (patch) | |
| tree | 57eefee89e9caf37d7cc4cbc966f66b875c945ac /deploy_services.sh | |
| parent | bb88b544c64a3b0d4edef3faa09bff4c3a59bdba (diff) | |
Containerize the application
The containers are orchestrated with systemd.
Diffstat (limited to 'deploy_services.sh')
| -rwxr-xr-x | deploy_services.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
