Re: Newbie needs help with postinst scripting
phpnuke package do exactly the same thing (plus some other more) through
debconf (including the matter of having or not the '-p' modificator).
You can view its "config", "postinst" and "templates" by issuing
'apt-get source phpnuke' (just in case you don't know)
If you have questios regarding this, i will try to answer you.
Packages you should examine to acomplish that: mysql-client,
wwwconfig-common, debconf. But i really recommend you to examine other's
work in spite of RTFM. It is lot of faster ;-)
Note that the user interface you are asking is called "Debconf".
Debian Maintainer for phpnuke and postnuke
Arne Goetje wrote:
I want to make a debain package for a collection of perl and php scripts
for my company. They will not go into public.
In my case I need a postinst script that asks the user for the local MySQL
server password and then puts the command string according to that (if
empty, then no -p argument). I'd like to have this nice user interface that
some packages have ( I assume, it uses 'dialog'... ?).
However, I don't know how to do that in the script (normal shell script)
and I don't find any documentation. Can anyone help me or point me to some
documentation on how to set variables through a user interface with a
Thanx for help.
"I've seen things you people wouldn't believe, huh!
Attack ships on fire off the shoulder of Orion.
I've watched C-beams glittering in the dark near the Tannhauser Gate.
All those moments will be lost in time, like tears ... in the rain.
Time to die."
-- Roy Batty, nexus 6 Tyrrel Corp. replicant, 2019 AC, L.A. --
pub 1024D/E8074ECF 2002-06-28 Hugo Espuny <firstname.lastname@example.org>
Key fingerprint = D324 3DC4 1F2A 0936 DEB9 A4D9 D24A 8237 E807 4ECF
sub 2048g/5FE11467 2002-09-29