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
|
|
|
|
set -e
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install python3-pip
|
|
|
|
|
|
|
|
pip3 install discord.py
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2020-03-05 17:10:35 +00:00
|
|
|
(crontab -u user -l; echo "$downloadCheck" ) | crontab -u user -
|
|
|
|
(crontab -u user- l; echo "$uploadCheck" ) | crontab -u user -
|