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

Undo auto-formatted space deletions

This commit is contained in:
Aleksandr Berkuta 2025-05-29 16:01:51 +03:00 committed by Jake Buchholz Göktürk
parent f84f2c090c
commit e243abc2ab

View File

@ -295,7 +295,7 @@ init__userdata_users() {
lock_passwd="$(get_userdata users/$i/lock_passwd)"
fi
if [ "$lock_passwd" != "false" ]; then
if [ "$lock_passwd" != "false" ] && [ -z "$hashed_passwd" ]; then
echo "${name}:*" | $MOCK chpasswd -e
fi
@ -319,7 +319,7 @@ init__userdata_users() {
for j in $(get_userdata users/$i/doas); do
local line="$(get_userdata users/$i/doas/$j)"
if [ -d "$ETC/doas.d" ]; then
echo "$line" >>"$ETC/doas.d/$name.conf"
echo "$line" >> "$ETC/doas.d/$name.conf"
elif [ -f "$ETC/doas.conf" ]; then
add_once "$ETC/doas.conf" "$line"
fi