Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.11.2
-
None
Description
if the user of the OS is a number, run the script and report an error:
groupadd: '002117' is not a valid group name
if the user of the OS is english, will be ok, like this:
if [ "$(uname -s)" == "Linux" ]; then USER_NAME=${SUDO_USER:=$USER} USER_ID=$(id -u "${USER_NAME}") GROUP_ID=$(id -g "${USER_NAME}") else # boot2docker uid and gid USER_NAME='mwopr' USER_ID=1000 GROUP_ID=50 fi