summaryrefslogtreecommitdiffstats
path: root/deploy_services.sh
blob: 9549ed2c09ed6b64fd7f15316c07345231cebdea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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