From 2bda056f360f800df15d34ef9d15610ede795e6d Mon Sep 17 00:00:00 2001 From: buanet Date: Tue, 8 Nov 2022 21:19:58 +0100 Subject: [PATCH] fix admin detection --- debian/scripts/iobroker_startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/iobroker_startup.sh b/debian/scripts/iobroker_startup.sh index cf83de6..6747b77 100644 --- a/debian/scripts/iobroker_startup.sh +++ b/debian/scripts/iobroker_startup.sh @@ -219,7 +219,7 @@ echo ' ' # hostname check # get admin instance and hostname 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 if [[ "$admininstance" != "" ]]; then if [[ "$debug" == "true" ]]; then echo "[DEBUG] Detected admin instance is:" $admininstance; fi