[CalendarServer-changes] [3387] CalendarServer/trunk/twistedcaldav/tap.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 17 14:22:57 PST 2008
Revision: 3387
http://trac.macosforge.org/projects/calendarserver/changeset/3387
Author: wsanchez at apple.com
Date: 2008-11-17 14:22:57 -0800 (Mon, 17 Nov 2008)
Log Message:
-----------
Create document root if absent
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/tap.py
Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py 2008-11-17 21:31:48 UTC (rev 3386)
+++ CalendarServer/trunk/twistedcaldav/tap.py 2008-11-17 22:22:57 UTC (rev 3387)
@@ -205,8 +205,14 @@
#
# Verify that document root, data root actually exist
#
- self.checkDirectory(config.DocumentRoot, "Document root")
self.checkDirectory(
+ config.DocumentRoot,
+ "Document root",
+ # Don't require write access because one might not allow editing on /
+ access=os.R_OK,
+ create=(0750, config.UserName, config.GroupName),
+ )
+ self.checkDirectory(
config.DataRoot,
"Data root",
access=os.W_OK,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081117/610d0c28/attachment.html>
More information about the calendarserver-changes
mailing list