mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-15 22:58:42 +02:00
soup will now ask to update packages
This commit is contained in:
@@ -165,11 +165,11 @@ check_os_updates() {
|
|||||||
# Check to see if there are OS updates
|
# Check to see if there are OS updates
|
||||||
NEEDUPDATES="We have detected missing operating system (OS) updates. Do you want to install these OS updates now? This could take a while depending on the size of your grid and how many packages are missing, but it is recommended to keep your system updated."
|
NEEDUPDATES="We have detected missing operating system (OS) updates. Do you want to install these OS updates now? This could take a while depending on the size of your grid and how many packages are missing, but it is recommended to keep your system updated."
|
||||||
if [[ $OS == 'ubuntu' ]]; then
|
if [[ $OS == 'ubuntu' ]]; then
|
||||||
OSUPDATES=$(apt list --upgradeable | wc -l)
|
OSUPDATES=$(apt list --upgradeable | grep -v "^Listing..." | grep -v "^docker-ce" | grep -v "^wazuh-" | grep -v "^salt-" | wc -l)
|
||||||
else
|
else
|
||||||
OSUPDATES=$(yum -q list updates | wc -l)
|
OSUPDATES=$(yum -q list updates | wc -l)
|
||||||
fi
|
fi
|
||||||
if [[ "$OSUPDATES" > 1 ]]; then
|
if [[ "$OSUPDATES" -gt 1 ]]; then
|
||||||
echo $NEEDUPDATES
|
echo $NEEDUPDATES
|
||||||
echo ""
|
echo ""
|
||||||
read -p "Press U to update OS packages (recommended), C to continue without updates, or E to exit: " confirm
|
read -p "Press U to update OS packages (recommended), C to continue without updates, or E to exit: " confirm
|
||||||
|
|||||||
Reference in New Issue
Block a user