From f6f056d0b33bd5c4a797fa254298508f8b2ce053 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 9 Dec 2019 09:00:02 +0100 Subject: [PATCH] testing --- amd64/scripts/iobroker_startup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amd64/scripts/iobroker_startup.sh b/amd64/scripts/iobroker_startup.sh index f0359a7..028b158 100644 --- a/amd64/scripts/iobroker_startup.sh +++ b/amd64/scripts/iobroker_startup.sh @@ -76,9 +76,7 @@ fi echo ' ' # Checking and setting uid/gid -gidold=`cat /etc/group | grep "iobroker:" | cut -d":" -f3` -uidold=`cat /etc/passwd | grep "iobroker:" | cut -d":" -f3` -if [ $gidold != $gid || $uidold != $uid ] +if [ $(cat /etc/group | grep 'iobroker:' | cut -d':' -f3) != $gid ] || [ $(cat /etc/passwd | grep 'iobroker:' | cut -d':' -f3) != $uid ] then echo "Different UID and/ or GID is set by ENV." echo "Changing UID to "$uid" and GID to "$gid"..."