diff --git a/script/host/aptUpdate.sh b/script/host/aptUpdate.sh new file mode 100755 index 0000000..6d2c877 --- /dev/null +++ b/script/host/aptUpdate.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +screen -RS "apt-upgrade" bash -c \ + "apt update | tee /dev/tty | grep -qF 'apt list --upgradable' \ + && apt upgrade -y \ + && apt autoremove --purge -y \ + && needrestart -m a -r l; \ + echo; \ + read -s -p 'Press ENTER to close this screen-session ...'"