fix entrypoint logic for checking if root

This commit is contained in:
Harry Hixon 2021-11-26 21:46:34 -08:00 committed by Florian Kinder
parent 0ec91c3391
commit dde2761a8c

View File

@ -46,7 +46,7 @@ fi
./docker-dlc.sh
EXEC=""
if [[ $(id -u) = 0 ]]; then
if [[ $(id -u) == 0 ]]; then
# Update the User and Group ID based on the PUID/PGID variables
usermod -o -u "$PUID" factorio
groupmod -o -g "$PGID" factorio