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
1f7b5b1a
Commit
1f7b5b1a
authored
Jan 13, 2021
by
Jean-Francois Rey
☕
Browse files
add time synchronization
parent
04c90944
Pipeline
#2898
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible_provisioning/files/update-time.sh
0 → 100644
View file @
1f7b5b1a
#/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
ansible_provisioning/playbook.yml
View file @
1f7b5b1a
...
...
@@ -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
...
...
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