Created
December 6, 2016 20:26
-
-
Save pbuckley4192/f691f00a055980ef1b2f116498cdd312 to your computer and use it in GitHub Desktop.
Set Server time when there is no NTP available
This file contains hidden or 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
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment