Gostaria de configurar o pacote ubuntu via dpkg-reconfigure com todos os valores fornecidos pelo modo não interativo (no script).
Na verdade, meu caso é a configuração do firebird ( http://www.firebirdsql.org/manual/ubusetup.html ), que ao usar o comando:
sudo dpkg-reconfigure firebird2.5-superclassic -freadline
pergunta-me os 2 valores, onde as respostas seriam 'Y' e 'newpwd'.
A saída de amostra é assim:
sudo dpkg-reconfigure firebird2.5-superclassic -freadline
* Firebird 2.5 superclassic server not running
Configuring firebird2.5-superclassic
------------------------------------
Accept if you want Firebird server to start automatically.
If you only need the Firebird client and there are no databases that will be served by this host, decline.
Enable Firebird server? Y
Password for firebird 2.5
-------------------------
Firebird has a special user named SYSDBA, which is the user that has access to all databases. SYSDBA can also create new databases and users. Because of this, it
is necessary to secure SYSDBA with a password.
The password is stored in /etc/firebird/2.5/SYSDBA.password (readable only by root). You may modify it there (don't forget to update the security database too,
using the gsec utility), or you may use dpkg-reconfigure to update both.
To keep your existing password, leave this blank.
Password for SYSDBA:
* Starting Firebird 2.5 superclassic server...
...done.
* Firebird 2.5 superclassic server already running
Eu tentei here strings
via script bash como este:
sudo dpkg-reconfigure firebird2.5-superclassic -f readline << EOF
Y
newpwd
EOF
No entanto, isso não funcionou por algum motivo e solicitou que os valores fossem fornecidos.
Alguma idéia de como alimentar os valores necessários para o script?