Fix write homebridge pin in db
@@ -168,7 +168,7 @@ function checkHomebridge {
sqlite3 $ZLLDB "replace into config2 (key, value) values('homebridge', 'not-managed')" &> /dev/null
fi
[[ $LOG_INFO ]] && echo "${LOG_INFO}existing homebridge hue auth found"
-
+ fi
if [[ -z "$HOMEBRIDGE_PIN" ]]; then
if [[ -f /home/$MAINUSER/.homebridge/config.json ]]; then
local p=$(cat /home/$MAINUSER/.homebridge/config.json | grep "pin" | cut -d'"' -f4)
@@ -181,7 +181,6 @@ function checkHomebridge {
fi
fi
fi
- fi
## check installed components
hb_installed=false
