mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
Improvments and renaming of aptUpdate
This commit is contained in:
2 files changed
+26
-22
No files matched your search
Executable
+9
@@ -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 ...'"
|
||||
Reference in new issue
Block a user