Created
March 26, 2018 12:30
-
-
Save clairtonluz/a877006966d58a2cfc7bea81896c843f 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
# instala ntpdate | |
sudo apt install ntpdate -y | |
# atualiza a hora baseada no servidor definido | |
sudo ntpdate -u ip_ou_dominio_do_servidor_ntp | |
# edita o arquivo /etc/default/ntpdate substituindo o NTPSERVERS padrão pelo seu servidor ntp | |
sudo sed -i '10s/.*/NTPSERVERS="ip_ou_dominio_do_servidor_ntp"/' /etc/default/ntpdate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment