mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 03:42:44 +03:00
fix: separate lock_passwd and hashed_passwd
This commit is contained in:
parent
18a4111b4c
commit
f52d0d6d2d
@ -287,6 +287,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
|
||||
@ -294,7 +295,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