Fix /etc/motd generation

This commit is contained in:
2022-01-26 15:38:51 -05:00
parent 103b0c682b
commit 2efeb4e887
4 changed files with 16 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ if ! id -u "$user" &>/dev/null; then
exit 1
fi
password="${password:-$user}" # For samba
password="${password:-$user}"
if ask_ok "Change user $user's password to $password?"; then
echo "$user":"$password" | chpasswd