Add the es_cleaner.py script to crontab and make sure that it's executable.

This commit is contained in:
Ivaylo Novakov 2021-08-16 15:44:07 +03:00
parent 32cc4f91cd
commit 9d2ac488cb
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
2 changed files with 4 additions and 0 deletions

View File

@ -9,3 +9,6 @@ pip3 install discord-webhook python-dotenv requests elasticsearch-curator
# add cron entries to user crontab
crontab -u user /home/user/skynet-webportal/setup-scripts/support/crontab
# make sure the scripts are runnable
chmod +x /home/user/skynet-webportal/scripts/es_cleaner.py

View File

@ -3,3 +3,4 @@
0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1
30 */4 * * * /home/user/skynet-webportal/setup-scripts/blocklist-airtable.py /home/user/skynet-webportal/.env
0 4 * * * /home/user/skynet-webportal/scripts/db_backup.sh 1 >> /home/user/skynet-webportal/logs/db_backup_`date +"%Y-%m-%d-%H%M"`.log 2 > &1
0 5 * * * /home/user/skynet-webportal/scripts/es_cleaner.py 1 http://localhost:9200