[CalendarServer-changes] [7221] CalendarServer/trunk/contrib/migration/calendarmigrator.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 18 11:48:23 PDT 2011
Revision: 7221
http://trac.macosforge.org/projects/calendarserver/changeset/7221
Author: sagen at apple.com
Date: 2011-03-18 11:48:21 -0700 (Fri, 18 Mar 2011)
Log Message:
-----------
Configure notification settings at migration time.
Modified Paths:
--------------
CalendarServer/trunk/contrib/migration/calendarmigrator.py
Modified: CalendarServer/trunk/contrib/migration/calendarmigrator.py
===================================================================
--- CalendarServer/trunk/contrib/migration/calendarmigrator.py 2011-03-18 18:25:06 UTC (rev 7220)
+++ CalendarServer/trunk/contrib/migration/calendarmigrator.py 2011-03-18 18:48:21 UTC (rev 7221)
@@ -217,6 +217,8 @@
migrateConfiguration(options, newServerRootValue, enableCalDAV,
enableCardDAV)
+ configureNotifications()
+
setRunState(options, enableCalDAV, enableCardDAV)
triggerResourceMigration(newServerRootValue)
@@ -269,6 +271,17 @@
log("serveradmin exited with %d" % (ret,))
+def configureNotifications():
+ """
+ Fetch notification settings from servermgr_notification via server admin
+ and write them into caldavd.plist
+ """
+
+ log("Configuring notifications via serveradmin")
+ ret = subprocess.call([SERVER_ADMIN, "command", "calendar:command=configureNotifications"])
+ log("serveradmin exited with %d" % (ret,))
+
+
def unloadService(options, service):
"""
Use launchctl to unload a service
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110318/6124b8c8/attachment.html>
More information about the calendarserver-changes
mailing list