diff --git a/setup-scripts/setup-health-check-scripts.sh b/setup-scripts/setup-health-check-scripts.sh index 6cac2c9e..77be25b2 100755 --- a/setup-scripts/setup-health-check-scripts.sh +++ b/setup-scripts/setup-health-check-scripts.sh @@ -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 diff --git a/setup-scripts/support/crontab b/setup-scripts/support/crontab index 9ebdb5ae..ad766264 100644 --- a/setup-scripts/support/crontab +++ b/setup-scripts/support/crontab @@ -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