Adding FIles
This commit is contained in:
13
updatesystem.sh
Executable file
13
updatesystem.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# if not root, run as root
|
||||
if (( $EUID != 0 )); then
|
||||
sudo $HOME/scripts/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
|
||||
Reference in New Issue
Block a user