|
|
|
@ -21,7 +21,7 @@ USERNAME=${USERNAME:-root}
|
|
|
|
|
USERNAME_SHELL=${USERNAME_SHELL:-/bin/bash}
|
|
|
|
|
USERNAME_SUDO=${USERNAME_SUDO:-${GRANT_SUDO:-YES}}
|
|
|
|
|
USERNAME_SUDO=$(echo "${USERNAME_SUDO}" | tr '[:lower:]' '[:upper:]')
|
|
|
|
|
USERNAME_PASSWORD_RESET=${USERNAME_PASSWORD_RESET:-YES}
|
|
|
|
|
USERNAME_PASSWORD_RESET=${USERNAME_PASSWORD_RESET:-NO}
|
|
|
|
|
USERNAME_PASSWORD_RESET=$(echo "${USERNAME_PASSWORD_RESET}" | tr '[:lower:]' '[:upper:]')
|
|
|
|
|
|
|
|
|
|
if ! getent passwd "${USERNAME}" > /dev/null 2>&1; then
|
|
|
|
|