Files
lxutils/updatesystem.sh
2024-10-02 13:02:58 -04:00

16 lines
310 B
Bash
Executable File

#!/bin/bash
# if not root, run as root
if (( $EUID != 0 )); then
sudo $HOME/lxutils/updatesystem.sh
exit
fi
apt update
apt list --upgradeable
read -p "Press any key to continue... " -n1 -s
apt upgrade -y
#apt-get -y dist-upgrade
apt clean
apt autoremove -y
clear
echo "Update/Upgrade is now complete!"