upoff 279 B

123456789101112
  1. #!/usr/bin/fish
  2. echo [UpOff] Upgrade and power-off system
  3. echo [UpOff] Info : do not forget SUDO ...
  4. echo [UpOff] Updating repos ...
  5. sudo apt-get update
  6. echo [UpOff] Upgrading system ...
  7. sudo apt-get -y upgrade
  8. echo [upOff] Upgrade terminated. Good night !
  9. systemctl poweroff