[rhmessaging-commits] rhmessaging commits: r3787 - mgmt/trunk/mint/bin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Jan 11 17:00:15 EST 2010


Author: justi9
Date: 2010-01-11 17:00:14 -0500 (Mon, 11 Jan 2010)
New Revision: 3787

Modified:
   mgmt/trunk/mint/bin/mint-database
Log:
Use the defines

Modified: mgmt/trunk/mint/bin/mint-database
===================================================================
--- mgmt/trunk/mint/bin/mint-database	2010-01-11 21:57:14 UTC (rev 3786)
+++ mgmt/trunk/mint/bin/mint-database	2010-01-11 22:00:14 UTC (rev 3787)
@@ -20,7 +20,7 @@
     # Is it initialized?
     # Is it running?
 
-    test -d /var/lib/pgsql/data || {
+    test -d "$pgdata" || {
         echo "The database is not initialized.  Run 'mint-database configure'."
         exit 1
     }
@@ -74,7 +74,7 @@
 record_pattern = re.compile('^\w*(local|host|hostssl|hostnossl)')
 
 database_name = "cumin"
-path = "/var/lib/pgsql/data/pg_hba.conf"
+path = "$pghbaconf"
 file = open(path, "r")
 
 lines = list()
@@ -154,7 +154,7 @@
             fi
         fi
 
-        test -d /var/lib/pgsql/data || {
+        test -d "$pgdata" || {
             echo "The database server is not initialized.  To proceed, I need to initialize it."
 
             if confirmed; then



More information about the rhmessaging-commits mailing list