17 lines
713 B
Bash
Executable File
17 lines
713 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -e # exit on first error
|
|
|
|
sudo apt-get update
|
|
sudo apt-get -y install python3-pip
|
|
|
|
pip3 install discord.py python-dotenv requests
|
|
|
|
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"
|
|
healthCheck="0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1"
|
|
|
|
(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 -
|