You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://star-history.com/#wolveix/satisfactory-server&Date)
309
+
[](https://star-history.com/#wolveix/satisfactory-server&Date)
printf"Debugging enabled (the container will exit after printing the debug info)\\n\\nPrinting environment variables:\\n"
@@ -53,10 +57,13 @@ if [[ "${LOG,,}" != "true" ]]; then
53
57
fi
54
58
fi
55
59
56
-
# check if the user and group IDs have been set. If so, reset HOME to the upstream default
57
60
if [[ "$CURRENTUID"-ne"0" ]];then
58
-
HOME="/root"
59
-
printf"${MSGWARNING} Current user (%s) is not root (0).\\nNo permissions will be adjusted as we're running within a rootless environment.\\n""$CURRENTUID"
61
+
if [[ "$STEAMUID"-ne"$CURRENTUID" ]] || [[ "$STEAMGID"-ne$(id -g) ]];then
62
+
printf"${MSGERROR} Current user (%s:%s) is not root (0:0), and doesn't match the steam user/group (%s:%s).\\nTo run the container as non-root with a UID/GID that differs from the steam user, you must build the Docker image with the UID and GID build arguments set.\\n""$CURRENTUID""$CURRENTGID""$STEAMUID""$STEAMGID"
63
+
exit 1
64
+
fi
65
+
66
+
printf"${MSGWARNING} Running as non-root user (%s:%s).\\n""$CURRENTUID""$CURRENTGID"
0 commit comments