#!/usr/bin/fish
echo [UpOff] Upgrade and power-off system
echo [UpOff] Info : do not forget SUDO ...

echo [UpOff] Updating repos ...
sudo apt-get update

echo [UpOff] Upgrading system ...
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade

echo [UpOff] Cleaning ...
sudo apt-get -y autoremove
sudo apt-get autoclean

echo [upOff] Upgrade terminated. Good night !
systemctl poweroff
