From 2de90d5f1b9d4b9cae48383a92e6ffb506d1894c Mon Sep 17 00:00:00 2001 From: reconman Date: Wed, 20 Apr 2022 19:06:42 +0200 Subject: [PATCH] Simplify default values for PUID and PGUID --- runscripts/init.docker | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/runscripts/init.docker b/runscripts/init.docker index ad57d056ab..fc1ea1823f 100755 --- a/runscripts/init.docker +++ b/runscripts/init.docker @@ -1,16 +1,7 @@ #!/bin/sh -if [ -z "${PUID+x}" ] -then - echo "Setting PUID to 0" - export PUID=0 -fi - -if [ -z "${PGID+x}" ] -then - echo "Setting PGID to 0" - export PGID=0 -fi +PUID=${PUID:-0} +PGID=${PGID:-0} if [[ $PUID != "0" ]] && [[ $PGID != "0" ]] then