Jean Parpaillon wrote: > Hi, > > Le dimanche 15 avril 2007 09:29, DongInn Kim a écrit : > >> Hi, >> >> http://svn.oscar.openclustergroup.org/trac/oscar/ticket/306 >> >> I have tried to resolve the prereq.cfg issue having a symlink to the >> corresponding real prereq.cfg according to the database type. >> But I like to put the real prereq.cfg (e.g., mysql.cfg and pgsql.cfg) to >> another directory to separate from other files or directories. Well it >> really does not matter where they are located but I would like to hear >> what you guys think about having another directory (prereqs/ ) in >> $OSCAR_HOME/packages/oda/. >> >> > > Why should we re-invent the wheel ? In the config.xml file, we have a whole > bunch of tags to describe package dependancies. If config.xml schema does not > handle your problem, it can be updated. > Jean, good point. But we have not written a code to handle the prereq configuration in packages/*/config.xml and we have never put the prereq configuration in config.xml. So would you re-write whole codes to take care of prereqs by putting all the other prereqs to config.xml and then write/call another code to parse the config.xml to use the prereq config at the proper point? Looks like this is more work for me. If I am missing your point, please correct me. Anyways, nonetheless if having the prereqs in config.xml is a right thing to do for the future, I think we have to consider doing it this way. > >> BTW, does anyone know how to check to see whether a certain rpm is newly >> installed during OSCAR installation or was already installed? >> >> Unfortunately, when postregreSQL is newly installed, it does not work >> until a user manually sets up its configuration properly. So I have to >> do some works on packages/oda/scripts/setup to handle this issue by >> updating the configuration file but I don't want to update the >> configuration when pgsql was already installed and used. >> >> > A suggestion: can't you just check if pgsql or mysql is running ? If you say > pgsql "does not work", that means that you can "ps -ef |grep pgsql" or > something like this (cat /var/run/postgresql ?) ? > Checking the ordinary path would be a good way to check to see if pgsql is installed or not if pgsql is installed via rpm and the path is the same distro-widely. But checking ps is not good enough to determine if the package (pgsql or its related rpms) is already installed or not because a user may turn it off even though it is installed. Thanks for the good catch. :-) "pgsql does not work" means that OSCAR/ODA can not just use pgsql without updating its config file(data/pg_hba.conf) when pgsql(-7.4.*) is newly installed. I thought that we may have a code to see if a certain package is newly installed or not in the installation of prereq packages.
-- - DongInn ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
