1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-14 19:02:45 +03:00

fix: separate lock_passwd and hashed_passwd

This commit is contained in:
Aleksandr Berkuta 2025-05-19 22:07:36 +03:00 committed by Jake Buchholz Göktürk
parent 5aece92a41
commit f84f2c090c

View File

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