Move more bind config into domtool, remove hardcoded /var/domtool references
[hcoop/domtool2.git] / configDefault / postgres.cfg
dissimilarity index 80%
index 6c91204..4f0d3e0 100644 (file)
@@ -1,7 +1,10 @@
-structure Postgres :> POSTGRES_CONFIG = struct
-
-val adduser = "/usr/bin/sudo /usr/local/sbin/domtool-postgres adduser "
-val createdb = "/usr/bin/sudo /usr/local/sbin/domtool-postgres createdb "
-val dropdb = "/usr/bin/sudo /usr/local/sbin/domtool-postgres dropdb "
-
-end
+structure Postgres :> POSTGRES_CONFIG = struct
+
+val adduser = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-postgres adduser"
+val createdb = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-postgres createdb"
+val dropdb = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-postgres dropdb"
+
+val postgres81port = "5432";
+val postgres91port = "5433"
+
+end