Skip to content

Commit

Permalink
set up crontab with sudo; moved reboot to 2am utc
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Ustiugov <dmitrii.ustiugov@ed.ac.uk>
  • Loading branch information
ustiugov committed Feb 6, 2021
1 parent d03059c commit 74755a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/github_runner/setup_runner_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ newgrp docker
#setup crontab for nightly reboots
TMPFILE=$(mktemp)
#write out current crontab
crontab -l > $TMPFILE
sudo crontab -l > $TMPFILE
#echo new cron into cron file
echo "00 00 * * * shutdown -r 0" >> $TMPFILE
sudo echo "00 02 * * * shutdown -r 0" >> $TMPFILE
#install new cron file
crontab $TMPFILE
sudo crontab $TMPFILE

0 comments on commit 74755a8

Please sign in to comment.