Modified: CalendarServer/branches/release/CalendarServer-2.2-dev/contrib/migration/59_calendarmigrator.py (4291 => 4292)
--- CalendarServer/branches/release/CalendarServer-2.2-dev/contrib/migration/59_calendarmigrator.py 2009-05-18 23:17:14 UTC (rev 4291)
+++ CalendarServer/branches/release/CalendarServer-2.2-dev/contrib/migration/59_calendarmigrator.py 2009-05-18 23:17:52 UTC (rev 4292)
@@ -124,7 +124,15 @@
"""
oldConfigDir = os.path.join(options.sourceRoot, CALDAVD_CONFIG_DIR)
+ if not os.path.exists(oldConfigDir):
+ log("Old configuration directory does not exist: %s" % (oldConfigDir,))
+ return
+
newConfigDir = os.path.join(options.targetRoot, CALDAVD_CONFIG_DIR)
+ if not os.path.exists(newConfigDir):
+ log("New configuration directory does not exist: %s" % (newConfigDir,))
+ return
+
log("Copying configuration files from %s to %s" % (oldConfigDir, newConfigDir))
for name in os.listdir(oldConfigDir):