Skip to content

Instantly share code, notes, and snippets.

@zofrex
Created October 2, 2017 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zofrex/e1c995f357c941ed954964d01670cc08 to your computer and use it in GitHub Desktop.
Save zofrex/e1c995f357c941ed954964d01670cc08 to your computer and use it in GitHub Desktop.
#!/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)"
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