From: Silvio Rhatto Date: Tue, 26 Jun 2012 04:09:28 +0000 (-0300) Subject: Adding roundcube logo config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a65a619e903cd5d1c9d23e74532c6b9d975f2c96;p=puppet-mail.git Adding roundcube logo config --- diff --git a/manifests/web.pp b/manifests/web.pp index 64dd964..5f67b49 100644 --- a/manifests/web.pp +++ b/manifests/web.pp @@ -4,6 +4,10 @@ class mail::web::virtual inherits websites::setup { case $roundcube_des_key { '': { fail("You need to define \$roundcube_des_key host config") } } + + case $roundcube_logo { + '': { $roundcube_logo = 'null' } + } } include php::imap diff --git a/templates/roundcube/main.inc.php.erb b/templates/roundcube/main.inc.php.erb index bc163e5..aa449d9 100644 --- a/templates/roundcube/main.inc.php.erb +++ b/templates/roundcube/main.inc.php.erb @@ -210,7 +210,7 @@ $rcmail_config['auto_create_user'] = true; // replace Roundcube logo with this image // specify an URL relative to the document root of this Roundcube installation -$rcmail_config['skin_logo'] = null; +$rcmail_config['skin_logo'] = <%= roundcube_logo %>; // Includes should be interpreted as PHP files $rcmail_config['skin_include_php'] = false;