mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
10 lines
294 B
Bash
Executable File
10 lines
294 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 \
|
|
&& needrestart -m a -r l; \
|
|
echo; \
|
|
read -s -p 'Press ENTER to close this screen-session ...'"
|