Re: storing root password rpm spec file (Manuel Arostegui)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can write a script in the %post section of the rpm, which executes the
.sql.
The installation of the rpm is performed by root, and so are all the scripts
in the package itself.
You can't save the password in the rpm - or it won't install on machines
other than yours.

Roberto Malinverni

------------------------------

Message: 3
Date: Wed, 20 Dec 2006 10:35:51 +0100 (CET)
From: "Manuel Arostegui" <manuel@xxxxxxxxxxxxxx>
Subject: storing root password rpm spec file
To: fedora-list@xxxxxxxxxx
Message-ID:
	<2093.87.217.44.236.1166607351.squirrel@xxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;charset=iso-8859-1

Hi all.
I´m packing an application which has got some .sql to configure database.
When you download the tar.gz you have to run the sql by hand, of course, and
all tables, and
databases are created.
Well, I would like to make that process automatically when the rpm is being
installed.

As all of you could imagine to run the sql you must be root, so, I have no
idea about how to ask
for the root password when rpm -i foo.rpm is done.
I mean, I would like to store the root password (I´ve been thinking that
could be done with
"expect") to use it with later, so then, the application will be installed
and the databases will
be set up correctly, cause I don´t want users to install the rpm and after
that run by hand the
sql file.

Any ideas of what to do with the spec file?
Thanks in advance.

Manuel.



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux