fix crontab on Mac machines

pull/14237/head
Steven Powell 2022-05-27 11:12:21 -07:00
parent 59bf38f286
commit 8d1e01e38a
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ set -e
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
install cron/cleanup_and_reboot_Darwin.sh $HOME/cleanup_and_reboot.sh || echo "FAILED TO INSTALL CLEANUP AND REBOOT"
echo "*/30 * * * * $HOME/cleanup_and_reboot.sh" | crontab
install cron/cleanup_go_modules.sh $HOME/cleanup_go_modules.sh || echo "FAILED TO INSTALL GO MODULES CLEANUP"
echo "*/30 * * * * $HOME/cleanup_and_reboot.sh\n0 0 1 * * $HOME/cleanup_go_modules.sh" | crontab
(crontab -l ; echo "0 0 1 * * $HOME/cleanup_go_modules.sh")| crontab -
crontab -l