fix admin detection

This commit is contained in:
buanet
2022-11-08 21:19:58 +01:00
parent cf175a820f
commit 2bda056f36

View File

@@ -219,7 +219,7 @@ echo ' '
# hostname check # hostname check
# get admin instance and hostname # get admin instance and hostname
set +e set +e
admininstance=$(bash iobroker list instances | grep -m 1 'admin' | awk '{print $1}') admininstance=$(bash iobroker list instances | grep -m 1 -o 'system.adapter.admin..')
set -e set -e
if [[ "$admininstance" != "" ]]; then if [[ "$admininstance" != "" ]]; then
if [[ "$debug" == "true" ]]; then echo "[DEBUG] Detected admin instance is:" $admininstance; fi if [[ "$debug" == "true" ]]; then echo "[DEBUG] Detected admin instance is:" $admininstance; fi