summaryrefslogtreecommitdiffstats
path: root/deploy_services.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy_services.sh')
-rwxr-xr-xdeploy_services.sh13
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