[CalendarServer-changes] [5865] CalendarServer/trunk/twistedcaldav/upgrade.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 9 14:58:22 PDT 2010


Revision: 5865
          http://trac.macosforge.org/projects/calendarserver/changeset/5865
Author:   sagen at apple.com
Date:     2010-07-09 14:58:21 -0700 (Fri, 09 Jul 2010)
Log Message:
-----------
Set proper ownership of mail gateway tokens db journal file

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/upgrade.py

Modified: CalendarServer/trunk/twistedcaldav/upgrade.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/upgrade.py	2010-07-09 18:36:45 UTC (rev 5864)
+++ CalendarServer/trunk/twistedcaldav/upgrade.py	2010-07-09 21:58:21 UTC (rev 5865)
@@ -301,6 +301,11 @@
         if os.path.exists(dbPath):
             os.chown(dbPath, uid, gid)
 
+        journalPath = "%s-journal" % (dbPath,)
+        if os.path.exists(journalPath):
+            os.chown(journalPath, uid, gid)
+
+
     def createTaskServiceDirectory(config, uid, gid):
 
         taskDir = os.path.join(config.DataRoot, "tasks")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100709/8f850a45/attachment.html>


More information about the calendarserver-changes mailing list