user input while installing an RPM
On Thu, Apr 22, 2010 at 05:35:22PM -0700, MGandra@diskeeper.com wrote:
> I have an RPM package which will install and I need to get the Username and
> Password for root user and write it to a config file.
This is a very bad idea. It's a massive security hole, and it will
break / won't work in all sorts of automated / GUI installation
Nevertheless, I did once work on an RPM for a proprietary database and
in that RPM we had to ask for a license key to be entered during RPM
installation. It does just work to read from stdin in the %post
It was still a bad idea ...
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
packaging mailing list