gh-113: Create new users with * in encrypted password

Closes #113
pull/114/head
Vlastimil Holer 6 years ago
parent c03bde6fb9
commit 1d98c317f9
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -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

Loading…
Cancel
Save