Advertisement
sergio_educacionit

system_updater.sh

Dec 12th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/bash
  2. # si la uid no es igual a 0
  3. if [ $UID -ne 0 ]; then # entonces
  4.  
  5.     echo "debe ejecutar este script con privilegios de usuario 'root'"
  6.     exit 1
  7.  
  8. fi
  9.  
  10. # actualizacion del sistema
  11. apt update && apt upgrade -y
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement