Projects
Kolab:3.4
pykolab
0001-Configure-the-skin-based-on-the-available-...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Configure-the-skin-based-on-the-available-skins.patch of Package pykolab (Revision 122)
Currently displaying revision
122
,
Show latest
From 5f711b830a66fd1795953193b8bfb82986568193 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Tue, 9 Dec 2014 13:01:47 +0100 Subject: [PATCH] Configure the skin based on the available skins --- pykolab/setup/setup_roundcube.py | 6 ++++++ share/templates/roundcubemail/config.inc.php.tpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py index 259f676..d7442b4 100644 --- a/pykolab/setup/setup_roundcube.py +++ b/pykolab/setup/setup_roundcube.py @@ -88,6 +88,12 @@ def execute(*args, **kw): 'conf': conf } + if os.access('/usr/share/roundcubemail/skins/enterprise/', os.R_OK): + rc_settings['skin'] = 'enterprise' + elif os.access('/usr/share/roundcubemail/skin/chameleon/', os_R_OK): + rc_settings['skin'] = 'chameleon' + else: + rc_settings['skin'] = 'larry' want_files = [ 'acl.inc.php', diff --git a/share/templates/roundcubemail/config.inc.php.tpl b/share/templates/roundcubemail/config.inc.php.tpl index 6383a5c..15cd25f 100644 --- a/share/templates/roundcubemail/config.inc.php.tpl +++ b/share/templates/roundcubemail/config.inc.php.tpl @@ -128,7 +128,7 @@ \$config['ldap_debug'] = false; \$config['smtp_debug'] = false; - \$config['skin'] = 'chameleon'; + \$config['skin'] = '$skin'; \$config['skin_include_php'] = false; \$config['mime_magic'] = null; \$config['im_identify_path'] = '/usr/bin/identify'; -- 1.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.