diff --git a/reinstall-fbl.sh b/reinstall-fbl.sh index abe5dec..03d04de 100644 --- a/reinstall-fbl.sh +++ b/reinstall-fbl.sh @@ -665,24 +665,36 @@ fi if [ -z "$PASSWORD" ] && [ -z "$SSH_KEYS_ALL" ]; then echo "No --password or --ssh-key specified." echo "You can set a root password now, or leave empty to auto-generate a random 20-character password." - read -r -s -p "Enter root password (leave empty to auto-generate): " pw1 - echo - if [ -z "$pw1" ]; then - # generate random password - if command -v tr >/dev/null 2>&1; then - PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9' /dev/null 2>&1; then + PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9'