This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/setup-scripts/setup-health-check-scripts.sh

16 lines
510 B
Bash
Raw Normal View History

2020-03-05 17:07:37 +00:00
#! /usr/bin/env bash
set -e # exit on first error
2020-03-05 17:07:37 +00:00
sudo apt-get update
sudo apt-get -y install python3-pip
pip3 install discord.py
pip3 install python-dotenv
2020-03-05 17:07:37 +00:00
2020-07-28 11:55:42 +00:00
fundsCheck="0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/funds-checker.py /home/user/.sia/sia.env"
2020-08-18 14:27:01 +00:00
logsCheck="0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/.sia/sia.env sia 8"
2020-03-05 17:07:37 +00:00
2020-07-28 11:55:42 +00:00
(crontab -u user -l; echo "$fundsCheck" ) | crontab -u user -
(crontab -u user -l; echo "$logsCheck" ) | crontab -u user -