fix crontab setup script
This commit is contained in:
parent
86497337ec
commit
f732df9660
|
@ -7,10 +7,5 @@ sudo apt-get -y install python3-pip
|
||||||
|
|
||||||
pip3 install discord.py python-dotenv requests
|
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"
|
# add cron entries to user crontab
|
||||||
logsCheck="0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/skynet-webportal/.env sia 8"
|
crontab -u user /home/user/skynet-webportal/setup-scripts/support/crontab
|
||||||
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 -
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/funds-checker.py /home/user/skynet-webportal/.env
|
||||||
|
0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/skynet-webportal/.env sia 8
|
||||||
|
0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1
|
Reference in New Issue