Skip to content

Commit 9413f66

Browse files
authored
do not upgrade openHAB on menu 02 (#2044)
1 parent e21edb1 commit 9413f66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

functions/menu.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ openHAB ${version} - $(sed -n 's/build-no\s*: //p' /var/lib/${OHPKG}/etc/version
1010
\\nThis tool provides a little help to make your openHAB experience as comfortable as possible.
1111
Make sure you have read the README and know about the Debug and Backup guides in /opt/openhabian/docs.
1212
\\nMenu 01 will allow you to select the standard (\"openHAB\") or the very latest (\"main\") openHABian version.
13-
Menu 02 will upgrade all of your OS and applications to the latest versions, including openHAB.
13+
Menu 02 will upgrade all of your OS and applications to the latest versions.
1414
Menu 03 will install or upgrade openHAB to the latest version available.
1515
Menu 10 provides a number of system tweaks. These are already active after a standard installation.
1616
Menu 20 allows you to install some supported optional components often used with openHAB.
@@ -37,7 +37,7 @@ show_main_menu() {
3737
"00 | About openHABian" "Information about the openHABian project and this tool" \
3838
"" "" \
3939
"01 | Select Branch" "Select the openHABian config tool version (\"branch\") to run" \
40-
"02 | Upgrade System" "Update all installed software packages (incl. openHAB) to their latest version" \
40+
"02 | Upgrade System" "Update all OS software packages (but not openHAB) to latest versions" \
4141
"03 | Install openHAB" "Install or upgrade to latest openHAB" \
4242
"04 | Import config" "Import an openHAB configuration from file or URL" \
4343
"" "" \
@@ -64,7 +64,9 @@ show_main_menu() {
6464

6565
elif [[ "$choice" == "02"* ]]; then
6666
wait_for_apt_to_finish_update
67+
cond_redirect apt-mark hold openhab openhab-addons
6768
system_upgrade
69+
cond_redirect apt-mark unhold openhab openhab-addons
6870

6971
elif [[ "$choice" == "03"* ]]; then
7072
wait_for_apt_to_finish_update

0 commit comments

Comments
 (0)