Skip to content

Commit 2832438

Browse files
authored
don't run upgrade if automated reboot is set (#2323)
1 parent 6843bd9 commit 2832438

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

menu/main_menu.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ do_the_update() {
5252
bash "$SCRIPTS"/update.sh minor
5353
if version_gt "$NCVERSION" "$CURRENTVERSION"
5454
then
55-
if yesno_box_yes "We will now run the update script a second time to update to the latest major version ($NCVERSION). Do you want to continue?"
55+
if [ -n "$REBOOT_SET" ]
5656
then
57-
bash "$SCRIPTS"/update.sh
57+
msg_box "Since you have automated updates enabled with the reboot option set, we won't run update script a second time to the latest version automatically.
58+
To upgrade to the latest version, please run: 'sudo bash $SCRIPTS/update.sh' from your CLI."
59+
else
60+
if yesno_box_yes "We will now run the update script a second time to update to the latest major version ($NCVERSION). Do you want to continue?"
61+
then
62+
bash "$SCRIPTS"/update.sh
63+
fi
5864
fi
5965
fi
6066
}

0 commit comments

Comments
 (0)