Created
October 2, 2017 11:09
-
-
Save zofrex/e1c995f357c941ed954964d01670cc08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
echo "Syncing clock..." | |
echo "Time before: $(date)" | |
service openntpd stop > /dev/null | |
/usr/local/sbin/ntpd -s > /dev/null | |
echo "Time after: $(date)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision 'sync-clock', type: 'shell', path: 'sync-clock.sh', run: 'always' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment