[Fusionforge-commits] r14897 - trunk/src
Alain Peyrat
aljeux at fusionforge.org
Fri Nov 18 19:26:24 CET 2011
Author: aljeux
Date: 2011-11-18 19:26:23 +0100 (Fri, 18 Nov 2011)
New Revision: 14897
Modified:
trunk/src/fusionforge.spec
Log:
Add service postgresql initdb if needed for .spec install
Modified: trunk/src/fusionforge.spec
===================================================================
--- trunk/src/fusionforge.spec 2011-11-18 17:47:26 UTC (rev 14896)
+++ trunk/src/fusionforge.spec 2011-11-18 18:26:23 UTC (rev 14897)
@@ -669,6 +669,10 @@
### END OF PLUGIN SETUP ###
%pre
+if [ ! -d "/var/lib/pgsql/data/base" ]; then
+ /sbin/service postgresql initdb >>/var/log/%{name}-install.log 2>&1
+fi
+
# we will need postgresql to be running. we start it, even if it already is running
# this won't hurt anything, just ensure we have a running database
/sbin/service postgresql start >>/var/log/%{name}-install.log 2>&1
More information about the Fusionforge-commits
mailing list