[Mageia-sysadm] [758] fix scenari for restricted list ( so now, it should likely work for

root at mageia.org root at mageia.org
Sun Jan 9 17:42:51 CET 2011


Revision: 758
Author:   misc
Date:     2011-01-09 17:42:51 +0100 (Sun, 09 Jan 2011)
Log Message:
-----------
fix scenari for restricted list ( so now, it should likely work for
reports and commits )

Modified Paths:
--------------
    puppet/modules/sympa/manifests/init.pp

Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp	2011-01-09 16:42:49 UTC (rev 757)
+++ puppet/modules/sympa/manifests/init.pp	2011-01-09 16:42:51 UTC (rev 758)
@@ -153,7 +153,8 @@
         }
 
         define scenario_sender_email {
-            file { "/etc/sympa/scenari/send.restricted_$name":
+            $sender_email_file = regsubst($name,'\@','-at-')
+            file { "/etc/sympa/scenari/send.restricted_$sender_email_file":
                 ensure => present,
                 owner => root,
                 group => root,
@@ -227,8 +228,8 @@
         }
 
         if $sender_email {
-            if ! defined(Sympa::Server::Scenario_sender_email[$sender_email_file]) {
-                sympa::server::scenario_sender_email { $sender_email_file: }
+            if ! defined(Sympa::Server::Scenario_sender_email[$sender_email]) {
+                sympa::server::scenario_sender_email { $sender_email: }
             }
         }
         
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110109/42a12bd3/attachment.html>


More information about the Mageia-sysadm mailing list