Skip to content

Commit d1d2ed4

Browse files
committed
Move deCONZ install guard into deconz_setup and disable by default
Signed-off-by: Markus Schraufstetter <10926460+Markkuuss@users.noreply.github.com>
1 parent 2103475 commit d1d2ed4

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

build-image/openhabian.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ hotspotpw=openhabian
9494
# grottSetupEnabled=false
9595

9696
# deCONZ settings (installs deCONZ; Phoscon Web UI + WebSocket API are provided by deCONZ)
97-
# deconz_install=enable
97+
deconz_install=disable
9898
# deconz_port=8081 # Phoscon Web UI (HTTP), default: 8081
9999
# deconz_wsport=8088 # deCONZ WebSocket API, default: 8088
100100

docs/openhabian.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ hotspotpw="openhabian"
556556

557557
#### `deconz_install`
558558

559-
Enable unattended deCONZ software / Phoscon companion app installation.
559+
Enable or disable deCONZ software / Phoscon companion app installation.
560560

561561
::: details Example
562562
```

functions/packages.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,11 @@ deconz_setup() {
685685
local successText=""
686686
local repo="/etc/apt/sources.list.d/deconz.list"
687687

688+
if [[ -n "$UNATTENDED" ]] && [[ "${deconz_install:-enable}" == "disable" ]]; then
689+
echo -n "$(timestamp) [openHABian] Skipping deCONZ install as requested."
690+
return 1
691+
fi
692+
688693
if [[ -n $INTERACTIVE ]]; then
689694
if ! (whiptail --title "deCONZ installation" --yes-button "Continue" --no-button "Cancel" --yesno "$introText" 11 80); then return 0; fi
690695
fi

openhabian-setup.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ if [[ -n "$UNATTENDED" ]]; then
125125
exim_setup
126126
nut_setup
127127
install_grott "install"
128-
# Install deCONZ (provides Phoscon Web UI + WebSocket API) when enabled
129-
if [[ "${deconz_install}" == "enable" ]]; then
130-
deconz_setup "${deconz_port}" "${deconz_wsport}"
131-
fi
128+
deconz_setup "${deconz_port}" "${deconz_wsport}"
132129
permissions_corrections
133130
setup_mirror_SD "install"
134131
install_cleanup

0 commit comments

Comments
 (0)