Added patch feature; included patch for custom links in login page #23

Merged
muppeth merged 6 commits from patch_feature into main 2023-09-25 22:47:42 +02:00
4 changed files with 44 additions and 0 deletions

View File

@ -21,6 +21,9 @@ rcube_smpt_port: '587'
rcube_smtp_user: '%u'
rcube_smtp_passwd: '%p'
rcube_support_url: 'https://roundcube.net/'
rcube_legal_url: 'https://example.org/tos'
rcube_privacy_policy_url: 'https://example.org/privacypolicy'
rcube_password_reset_url: 'https://account.example.org'
rcube_logdir: 'logs/'
rcube_temp_dir: 'temp/'
rcube_des_key: 'WxCpB7ZKU8x01erIxwO9wBGi' #exactly 24 chars
@ -36,6 +39,10 @@ rcube_custom_themes: #add you custom theme
- name: ''
repo: ''
branch: ''
#Custom changes to roundcube code in form of patches. If you do not want to use the feature just set the variable below to false. When true, add your patches to extra_files/custom_patch and add the filename to the list below
rcube_custom_patch: 'true'
rcube_custom_patch_list:
- '0001-added-additional-urls-for-login-page.patch'
#PHP Vars
php_version: '8.0'

15
tasks/custom_patches.yml Normal file
View File

@ -0,0 +1,15 @@
---
- name: '[PATCHING] - Copy patches'
copy:
src: 'extra_files/custom_patch/{{ item }}'
dest: '/tmp/{{ item }}'
with_items: '{{ rcube_custom_patch_list }}'
- name: '[PATCHING] - Apply custom patches'
shell: 'git apply /tmp/{{ item }}'
args:
chdir: '{{ rcube_latest_path }}'
#become: 'yes'
#become_user: "{{ rcube_app_username }}"
with_items: '{{ rcube_custom_patch_list }}'

View File

@ -34,3 +34,7 @@
include_tasks: carddav.yml
when: rcube_plugins_carddav == 'yes'
tags: carddav
- include_tasks: custom_patches.yml
when: rcube_custom_patch == 'true'
tags: patch

View File

@ -98,6 +98,24 @@ $config['smtp_log'] = {{ rcube_smpt_log }};
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '{{ rcube_support_url }}';
{% if rcube_legal_url is defined %}
// provide an URL for a legal link
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['legal_url'] = '{{ rcube_legal_url }}';
{% endif %}
{% if rcube_privacy_policy_url is defined %}
// provide an URL for a privacy policy link
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['privacy_policy_url'] = '{{ rcube_privacy_policy_url }}';
{% endif %}
{% if rcube_password_reset_url is defined %}
// provide an URL for a password reset link
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['password_reset_url'] = '{{ rcube_password_reset_url }}';
{% endif %}
// use this folder to store log files
// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
// This is used by the 'file' log driver.