From 6411c63cc91c352d9bd3a8edcf8a644b6888255d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 24 Jun 2023 16:12:59 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 7f10801..c940fe8 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/linupx' -VERS='5.86-05022023' +VERS='5.88-06242023' if [ -d /opt/idssys/settings ]; then [ $(ls /opt/idssys/settings | wc -l) -eq 0 ] && rm -rf /opt/idssys/settings @@ -667,6 +667,10 @@ COPYCERTS_UPDATE(){ [ ${1-x} ] && exit 0 || read -n 1 -s -p "Press any key to continue" } +UPDATEREPOKEYS(){ + apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com +} + SCRIPT_MENU() { if [ -f ${FOLDER}/lastrun ]; then LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1) @@ -721,6 +725,7 @@ SCRIPT_MENU() { echo " [0] Enable/Disable Automatic Security Updates" echo "" fi + echo " [K] Update/Fix Missing APT Repo Keys" echo " [I] Installation Scripts" echo "" # echo " [L] Enable Remote Syslog" @@ -767,6 +772,8 @@ SCRIPT_MENU() { SCRIPT_MENU;; [Pp]) PYTHON3UPGRADE SCRIPT_MENU;; + [Kk]) UPDATEREPOKEYS + SCRIPT_MENU;; [Rr]) GO_REBOOT SCRIPT_MENU;; [Ss]) SHUTDOWN