correct plenum bot config folders

This commit is contained in:
murmeldin 2025-02-09 00:49:39 +01:00
parent 8a6c6cda9a
commit 8df8d6eee6
7 changed files with 63 additions and 102 deletions

View file

@ -1,7 +1,5 @@
#!/bin/sh
# This script is being ran every time the systemd job is triggered
# This script can be run in order to change the Plenum-Bot config
u=$USER
../target/release/Plenum-Bot -f /home/$u/.config/plenum-bot/config.sqlite -c
$HOME/.cargo/bin/Plenum-Bot -f .config/Plenum-Bot.sqlite -c

View file

@ -1,7 +0,0 @@
#!/bin/sh
# This script is being ran every time the systemd job is triggered
u=$USER
../target/release/Plenum-Bot -f /home/$u/.config/plenum-bot/config.sqlite

View file

@ -3,9 +3,9 @@
# This script can be run to update or newly install
# the systemd services needed for
sudo -i
cat ../systemd/plenumbot.service > /etc/systemd/system/plenumsbot.service
cat ../systemd/plenumbot.timer > /etc/systemd/system/plenumsbot.timer
chmod 755 /etc/systemd/system/plenumsbot.timer
chmod 755 /etc/systemd/system/plenumsbot.service
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
systemctl daemon-reload
systemctl daemon-reload --user