Skip to content

Instantly share code, notes, and snippets.

@skt-bford
Last active December 13, 2015 19:18
Show Gist options
  • Save skt-bford/4961395 to your computer and use it in GitHub Desktop.
Save skt-bford/4961395 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
yum -y install ntp
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
/etc/init.d/ntpd stop
ntpdate pool.ntp.org
/sbin/chkconfig --levels 235 ntpd on
/etc/init.d/ntpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment