Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Created September 29, 2014 17:37
Show Gist options
  • Save mattantonelli/1c760923f44ae038deac to your computer and use it in GitHub Desktop.
Save mattantonelli/1c760923f44ae038deac to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root!"
exit 1
fi
echo "Syncing with NTP server"
ntpdate north-america.pool.ntp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment