[opensuse-packaging] packaging policy on mysql database changes
Hi folks, is it valid for an OpenSUSE package to create or alter mysql databases during its installation / removal? I found no policy on that. -- Ralf Lang Linux Consultant / Developer B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Dienstag, 15. März 2011, 17:44:47 schrieb Ralf Lang:
Hi folks,
is it valid for an OpenSUSE package to create or alter mysql databases during its installation / removal?
I found no policy on that.
It is at least against the policy for packages for openSUSE itself. You can not guess the mysql setup, you can not be sure if the daemon is running at that point (eg. on system update it is not) and so on. It is better to create/alter the database when your service is starting based on your service mysql configuration. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2011-03-15 17:44:47 +0100, Ralf Lang wrote:
is it valid for an OpenSUSE package to create or alter mysql databases during its installation / removal?
I found no policy on that.
I would say no especially for the create part, unless you provide some dialog where the user can enter the data for a) host b) db name c) username d) password optional e) root pw if needed to create b/c/d. but you would enter a lot of fun to find away for all the different package manager frontends. for the upgrade part you might go for running the upgrade scripts from the app during %post, but i still prefer an README.upgrade there. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Marcus Rueckert
-
Ralf Lang