Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R ecosystem
MacOSR
Commits
307aafba
Commit
307aafba
authored
Jan 20, 2021
by
Jean-Francois Rey
☕
Browse files
time update every minute
parent
f0f9eb5e
Pipeline
#2934
failed with stages
in 20 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible_provisioning/files/update-time.sh
View file @
307aafba
...
...
@@ -8,7 +8,7 @@ sudo chmod 666 /var/db/ntp-kod
sudo
sntp
-sS
pool.ntp.org
# force time cron 1m
(
sudo
crontab
-l
2>/dev/null
;
echo
"1 * * * * sntp -sS pool.ntp.org"
)
|
sudo
crontab -
(
sudo
crontab
-l
2>/dev/null
;
echo
"
*/
1 * * * * sntp -sS pool.ntp.org"
)
|
sudo
crontab -
# never know...
#sudo echo "server pool.ntp.org minpoll 4 maxpoll 5" > /etc/ntp.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment