[midgard-commits] r19218 - branches/ragnaroek/midgard/data/midgard/setup/php

piotras midgard-commits at lists.midgard-project.org
Wed Dec 3 16:02:42 CET 2008


Author: piotras
Date: Wed Dec  3 16:02:42 2008
New Revision: 19218
URL: http://trac.midgard-project.org/software/changeset/19218

Log:
Create replication spool directory


Modified:
   branches/ragnaroek/midgard/data/midgard/setup/php/midgard_setup_vhost.php

Modified: branches/ragnaroek/midgard/data/midgard/setup/php/midgard_setup_vhost.php
==============================================================================
--- branches/ragnaroek/midgard/data/midgard/setup/php/midgard_setup_vhost.php	(original)
+++ branches/ragnaroek/midgard/data/midgard/setup/php/midgard_setup_vhost.php	Wed Dec  3 16:02:42 2008
@@ -391,6 +391,14 @@
         chown($rcs_dir, MIDGARD_SETUP_APACHE_USER);
         chgrp($rcs_dir, MIDGARD_SETUP_APACHE_GROUP);
 
+        /* spool directory, required for replication */
+        $spool_dir = MIDGARD_SETUP_DIRECTORY_VAR."spool/midgard/replicator_queue";
+        if(!is_dir($spool_dir))
+            mkdir($spool_dir, 0771, TRUE);
+
+        chown($spool_dir, MIDGARD_SETUP_APACHE_USER);
+        chgrp($spool_dir, MIDGARD_SETUP_APACHE_GROUP);
+
         /* vhost individual directories */
         if(!is_dir($this->host_dir))
             mkdir($this->host_dir, 0711, TRUE);


More information about the midgard-commits mailing list