15 lines
466 B
Bash
Executable File
15 lines
466 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
|
|
sudo apt-get update
|
|
sudo apt-get -y install python3-pip
|
|
|
|
pip3 install discord.py
|
|
pip3 install python-dotenv
|
|
|
|
downloadCheck="0 0,8,16 * * * ~/skynet-webportal/setup-scripts/health-checker.py ~/.sia/sia.env"
|
|
uploadCheck="0 0,8,16 * * * ~/skynet-webportal/setup-scripts/health-checker.py ~/.sia/sia-upload.env"
|
|
|
|
(crontab -u user -l; echo "$downloadCheck" ) | crontab -u user -
|
|
(crontab -u user -l; echo "$uploadCheck" ) | crontab -u user -
|