lot_manager/conf/example/bash/cron_set_for_32G.sh

10 lines
390 B
Bash
Executable File

#!/bin/bash
set -e
sudo crontab -r
sudo crontab -l > cron.cron
echo "0 */5 * * * supervisorctl restart data_upload" >> cron.cron
echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron
echo "*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.py" >> cron.cron
sudo crontab cron.cron
sudo systemctl restart cron.service
sudo rm -rf cron.cron