summaryrefslogtreecommitdiffstats
path: root/deploy_services.sh
blob: 380eede77de58d959a6d9c2a81c3827f364f29e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
systemctl --user enable veetibot