|
|
|
@ -308,9 +308,7 @@ if [ "$skip_account_setup" != true ]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then |
|
|
|
elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then |
|
|
|
if [ -z "$password" ]; then |
|
|
|
if [ -z "$password" ]; then |
|
|
|
printf '\n%s' 'Password: ' 1>&2 |
|
|
|
read -rs -p 'Password: ' password |
|
|
|
read -rs password |
|
|
|
|
|
|
|
echo 1>&2 |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
password="$(busybox mkpasswd -m sha512 "$password")" |
|
|
|
password="$(busybox mkpasswd -m sha512 "$password")" |
|
|
|
elif command_exists python3; then |
|
|
|
elif command_exists python3; then |
|
|
|
@ -322,9 +320,7 @@ if [ "$skip_account_setup" != true ]; then |
|
|
|
else |
|
|
|
else |
|
|
|
cleartext_password=true |
|
|
|
cleartext_password=true |
|
|
|
if [ -z "$password" ]; then |
|
|
|
if [ -z "$password" ]; then |
|
|
|
printf '\n%s' 'Password: ' 1>&2 |
|
|
|
read -rs -p 'Password: ' password |
|
|
|
read -rs password |
|
|
|
|
|
|
|
echo 1>&2 |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|