1
0

upoff 385 B

1234567891011121314151617
  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. sudo apt-get -y dist-upgrade
  9. echo [UpOff] Cleaning ...
  10. sudo apt-get -y autoremove
  11. sudo apt-get autoclean
  12. echo [upOff] Upgrade terminated. Good night !
  13. systemctl poweroff