Add the es_cleaner.py script to crontab and make sure that it's executable.
This commit is contained in:
parent
32cc4f91cd
commit
9d2ac488cb
|
@ -9,3 +9,6 @@ pip3 install discord-webhook python-dotenv requests elasticsearch-curator
|
||||||
|
|
||||||
# add cron entries to user crontab
|
# add cron entries to user crontab
|
||||||
crontab -u user /home/user/skynet-webportal/setup-scripts/support/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
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1
|
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
|
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 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
|
||||||
|
|
Reference in New Issue