Index: modules/notificationserver/manifests/init.pp |
diff --git a/modules/notificationserver/manifests/init.pp b/modules/notificationserver/manifests/init.pp |
index 37a53712e98ac063b627014f8ae912c04e675a7d..eb4755261d5fe40ff0f3b5e205f5fdb4db783828 100644 |
--- a/modules/notificationserver/manifests/init.pp |
+++ b/modules/notificationserver/manifests/init.pp |
@@ -21,6 +21,14 @@ class notificationserver($is_default = false) { |
onlyif => 'test ! -d /opt/notifications' |
} |
+ cron {'update_notifications': |
+ command => 'hg pull -q -u -R /opt/notifications', |
+ environment => ['MAILTO=admins@adblockplus.org,root'], |
+ minute => '*/5', |
+ user => 'nginx', |
+ require => Exec['fetch_notifications'], |
+ } |
+ |
include spawn-fcgi |
package {'python-flup':} |