hcoop: add testing server busted, allow admins to configure apache
[hcoop/domtool2.git] / configDefault / courier.cfg
index 025ee60..cc5f315 100644 (file)
@@ -1,18 +1,20 @@
 structure Courier :> COURIER_CONFIG = struct
 
 (* Non-daemon programs *)
 structure Courier :> COURIER_CONFIG = struct
 
 (* Non-daemon programs *)
-val userdb = "/usr/sbin/userdb"
 val maildirmake = "/usr/bin/maildirmake.courier"
 val maildirmake = "/usr/bin/maildirmake.courier"
-val userdbpw = "/usr/sbin/userdbpw"
 val makeuserdb = "/usr/sbin/makeuserdb"
 
 val makeuserdb = "/usr/sbin/makeuserdb"
 
-val userdbDir = "/etc/userdb"
+val userdbDir = "/etc/courier/userdb"
 (* Directory for storing userdb info *)
 
 (* Directory for storing userdb info *)
 
-val postReload = "/usr/bin/sudo /usr/local/sbin/domtool-publish courier"
+val postReload = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish courier"
 (* Command to run after reloading userdb data *)
 
 val logFile = "/var/log/exim4/mainlog"
 (* SMTP log *)
 
 (* Command to run after reloading userdb data *)
 
 val logFile = "/var/log/exim4/mainlog"
 (* SMTP log *)
 
+(* FIXME: should probably be in an external script *)
+val pushUserdb = "/usr/bin/rsync -r --delete /etc/courier/userdb/* " ^ ConfigCore.sharedRoot ^ "/email/userdb/"
+val pullUserdb = "/usr/bin/rsync -r --delete " ^ ConfigCore.sharedRoot ^ "/email/userdb/* /etc/courier/userdb/"
+
 end
 end