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.
2020-03-05 17:07:37 +00:00
|
|
|
#! /usr/bin/env bash
|
2020-06-22 09:54:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-08 16:07:33 +00:00
|
|
|
pip3 install discord.py python-dotenv requests pytz tzlocal
|
2020-03-05 17:07:37 +00:00
|
|
|
|
2020-08-19 16:14:55 +00:00
|
|
|
fundsCheck="0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/funds-checker.py /home/user/skynet-webportal/.env"
|
|
|
|
logsCheck="0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/skynet-webportal/.env sia 8"
|
2020-09-04 14:12:20 +00:00
|
|
|
healthCheck="0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1"
|
2020-03-05 17:07:37 +00:00
|
|
|
|
2020-09-04 14:12:20 +00:00
|
|
|
(crontab -u user -l; echo "$fundsCheck" ) | crontab -u user -
|
|
|
|
(crontab -u user -l; echo "$logsCheck" ) | crontab -u user -
|
|
|
|
(crontab -u user -l; echo "$healthCheck" ) | crontab -u user -
|