Update 00-global_var.sh

This commit is contained in:
Alexandre
2021-11-25 19:10:03 +01:00
committed by GitHub
parent dcfad93579
commit a50c882eb4

View File

@@ -27,15 +27,3 @@ if [ ! -z "TZ" ] && [ -f /etc/localtime ]; then
echo "WARNING : Timezone $TZ is invalid, it will be kept to default value of $(cat /etc/timezone)"
fi
fi
############
# Set user #
############
if [ ! -z "PUID" ] && [ ! -z "GUID" ]; then
echo "Custom user defined : $PUID:$GUID"
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
fi