[rhmessaging-commits] rhmessaging commits: r4092 - mgmt/newdata/cumin/bin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Jul 8 22:20:34 EDT 2010


Author: justi9
Date: 2010-07-08 22:20:33 -0400 (Thu, 08 Jul 2010)
New Revision: 4092

Modified:
   mgmt/newdata/cumin/bin/cumin-database
Log:
Set up path for attempting to run config update code

Modified: mgmt/newdata/cumin/bin/cumin-database
===================================================================
--- mgmt/newdata/cumin/bin/cumin-database	2010-07-08 18:57:48 UTC (rev 4091)
+++ mgmt/newdata/cumin/bin/cumin-database	2010-07-09 02:20:33 UTC (rev 4092)
@@ -169,7 +169,14 @@
     fi
 
     python <<EOF
+import os
+import sys
+
+home = os.environ.get("CUMIN_HOME", os.path.normpath("/usr/share/cumin"))
+sys.path.append(os.path.join(home, "python"))
+
 from cumin.database import modify_pghba_conf
+
 modify_pghba_conf('${pghbaconf}', '${dbname}', 'cumin')
 EOF
 }



More information about the rhmessaging-commits mailing list