19 lines
614 B
Bash
19 lines
614 B
Bash
#!/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
|
|
sudo ./update_or_create_systemd_service.sh |