Advertisement
LightProgrammer000

Configurar data automaticamente [linux]

Jul 18th, 2021
2,531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Estutura de decisa para saber o arquivo existe
  4. if [[ -f /etc/init.d/ntp ]]
  5. then
  6.     /etc/init.d/ntp start
  7. else
  8.     apt-get install ntp
  9.     /etc/init.d/ntp start
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement