Commit 1f7b5b1a authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

add time synchronization

parent 04c90944
Pipeline #2898 failed with stages
in 0 seconds
#/bin/bash
echo "Time synchronization forcing..."
sudo touch /var/db/ntp-kod
sudo chmod 666 /var/db/ntp-kod
# force time update
sudo sntp -sS pool.ntp.org
# force time cron 1m
(sudo crontab -l 2>/dev/null; echo "* * * * * sntp -sS pool.ntp.org") | sudo crontab -
# never know...
sudo echo "server pool.ntp.org minpoll 4 maxpoll 5" > /etc/ntp.conf
......@@ -17,6 +17,8 @@
- name: disable sleep
shell:
cmd: sudo pmset -a disablesleep 1
- name: set time synchronization
script: files/update-time.sh
- name: Install R and dependencies
script: files/install-r.sh
- name: Install R packages and dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment