|
|
|
@ -25,7 +25,7 @@ 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
|
|
|
|
|
useradd -m "${USERNAME}" -s "${USERNAME_SHELL}"
|
|
|
|
|
useradd -m "${USERNAME}" -p '*' -s "${USERNAME_SHELL}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "${USERNAME_SUDO}" == "YES" ] && [ "${USERNAME}" != "root" ]; then
|
|
|
|
|