update
This commit is contained in:
parent
307746c4e2
commit
800e881985
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
sudo crontab -r
|
||||||
|
sudo crontab -l > cron.cron
|
||||||
|
echo "0 */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
|
||||||
|
echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron
|
||||||
|
# 64G的才加
|
||||||
|
echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron
|
||||||
|
sudo crontab cron.cron
|
||||||
|
sudo systemctl restart cron.service
|
||||||
|
sudo rm -rf cron.cron
|
Loading…
Reference in New Issue