added installation instructions and changed config file location to user/.config
This commit is contained in:
parent
c2d9dcdd74
commit
35ab8923a4
6 changed files with 77 additions and 4 deletions
7
util/change-config.sh
Normal file
7
util/change-config.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/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 -c
|
19
util/install_script_ubuntu.sh
Normal file
19
util/install_script_ubuntu.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
# The plenum bot works when being run on a ubuntu-server
|
||||
# instance with these commands ran previously.
|
||||
# For other distros, please adapt these instructions
|
||||
# so you have the same packages installed as well.
|
||||
#
|
||||
# This script can also be run in order to update
|
||||
# the bot and its dependencies to the newest version.
|
||||
|
||||
# Optionally, if you don't have rust installed, you should do it here:
|
||||
# https://www.rust-lang.org/tools/install
|
||||
|
||||
git pull
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
sudo apt install gcc libssl-dev pandoc pkg-config libsqlite3-dev
|
||||
cargo build --release
|
||||
./update_or_create_systemd_service.sh
|
7
util/run_release.sh
Normal file
7
util/run_release.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/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
|
11
util/update_or_create_systemd_service.sh
Normal file
11
util/update_or_create_systemd_service.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script can be run to update or newly install
|
||||
# the systemd services needed for
|
||||
|
||||
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
|
||||
|
||||
sudo systemctl daemon-reload
|
Loading…
Add table
Add a link
Reference in a new issue