mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2026-06-21 00:07:16 +03:00
fix: separate lock_passwd and hashed_passwd
This commit is contained in:
parent
cfe3c2dda5
commit
168bb06699
@ -288,6 +288,7 @@ init__userdata_users() {
|
||||
|
||||
if in_list hashed_passwd $keys; then
|
||||
hashed_passwd="$(get_userdata users/$i/hashed_passwd)"
|
||||
echo "${name}:${hashed_passwd}" | $MOCK chpasswd -e
|
||||
fi
|
||||
|
||||
if in_list lock_passwd $keys; then
|
||||
@ -295,7 +296,7 @@ init__userdata_users() {
|
||||
fi
|
||||
|
||||
if [ "$lock_passwd" != "false" ]; then
|
||||
echo "${name}:${hashed_passwd}" | $MOCK chpasswd -e
|
||||
echo "${name}:*" | $MOCK chpasswd -e
|
||||
fi
|
||||
|
||||
if in_list ssh_authorized_keys $keys; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user