plenum-bot/util/update_or_create_systemd_service.sh

11 lines
434 B
Bash
Raw Normal View History

#!/bin/sh
# This script can be run to update or newly install
# the systemd services needed for
2025-02-09 01:29:48 +01:00
mkdir -p $HOME/.config/systemd/user/
2025-02-09 00:49:39 +01:00
cat ../systemd/plenumbot.service > $HOME/.config/systemd/user/Plenum-Bot.service
cat ../systemd/plenumbot.timer > $HOME/.config/systemd/user/Plenum-Bot.timer
chmod 755 $HOME/.config/systemd/user/Plenum-Bot.timer
chmod 755 $HOME/.config/systemd/user/Plenum-Bot.service
2025-02-09 00:49:39 +01:00
systemctl daemon-reload --user