chore: fix indenting in userSetup.sh
Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
@@ -6,8 +6,12 @@ RUN_AS=root
|
||||
|
||||
if [ -n "$PUID" ] && [ ! "$(id -u root)" -eq "$PUID" ]; then
|
||||
RUN_AS=abc
|
||||
if [ ! "$(id -u ${RUN_AS})" -eq "$PUID" ]; then usermod -o -u "$PUID" ${RUN_AS} ; fi
|
||||
if [ ! "$(id -g ${RUN_AS})" -eq "$PGID" ]; then groupmod -o -g "$PGID" ${RUN_AS} ; fi
|
||||
if [ ! "$(id -u ${RUN_AS})" -eq "$PUID" ]; then
|
||||
usermod -o -u "$PUID" ${RUN_AS};
|
||||
fi
|
||||
if [ ! "$(id -g ${RUN_AS})" -eq "$PGID" ]; then
|
||||
groupmod -o -g "$PGID" ${RUN_AS};
|
||||
fi
|
||||
|
||||
# Make sure directories exist before chown and chmod
|
||||
mkdir -p /config \
|
||||
|
Reference in New Issue
Block a user