soup will now ask to update packages

This commit is contained in:
Mike Reeves
2021-04-21 15:51:28 -04:00
parent 13ad07cd88
commit 73001713e3

View File

@@ -165,9 +165,9 @@ 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) OSUPDATES=$(apt list --upgradeable | wc -l)
else else
OSUPDATES=$(yum -q list updates) OSUPDATES=$(yum -q list updates | wc -l)
fi fi
if [[ "$OSUPDATES" > 1 ]]; then if [[ "$OSUPDATES" > 1 ]]; then
echo $NEEDUPDATES echo $NEEDUPDATES