Files
cis/script/host/aptUpgrade.sh
T
2026-09-26 22:52:21 +02:00

10 lines
284 B
Bash
Executable File

#!/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; \
echo ''; \
read -s -p 'Press ENTER to close this screen-session ...'"
needrestart -m a -r l