1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/horde_ynh.git synced 2024-09-03 19:16:08 +02:00

Configure imp manually

This commit is contained in:
Josué Tille 2018-02-12 14:03:45 +01:00
parent bd4b908c01
commit ecdccea0f9
3 changed files with 24 additions and 0 deletions

19
conf/horde_imp_conf.php Normal file
View file

@ -0,0 +1,19 @@
<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Id: 48bf0b4cc99e7941b4432a29e70e145b8d654cc7 $
$conf['user']['allow_view_source'] = true;
$conf['server']['server_list'] = 'none';
$conf['compose']['use_vfs'] = true;
$conf['compose']['link_attachments'] = false;
$conf['compose']['attach_size_limit'] = 0;
$conf['compose']['attach_count_limit'] = 0;
$conf['compose']['reply_limit'] = 200000;
$conf['compose']['ac_threshold'] = 3;
$conf['compose']['htmlsig_img_size'] = 30000;
$conf['pgp']['keylength'] = 4096;
$conf['maillog']['driver'] = 'history';
$conf['sentmail']['driver'] = 'Null';
$conf['contactsimage']['backends'] = array('IMP_Contacts_Avatar_Addressbook');
$conf['tasklist']['use_tasklist'] = true;
$conf['notepad']['use_notepad'] = true;
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

View file

@ -24,6 +24,7 @@ patch_app() {
config_horde() {
ynh_backup_if_checksum_is_different "$final_path/horde/config/conf.php"
ynh_backup_if_checksum_is_different "$final_path/horde/imp/config/conf.php"
ynh_backup_if_checksum_is_different "$final_path/horde/config/registry.local.php"
ynh_backup_if_checksum_is_different "$final_path/horde/gollem/config/backends.local.php"
ynh_backup_if_checksum_is_different "$final_path/horde/ingo/config/backends.local.php"
@ -38,6 +39,8 @@ config_horde() {
ynh_replace_string "__ADMIN_USER__" "$admin" "$final_path/horde/config/conf.php"
ynh_replace_string "__SECRET_KEY__" "$secret_key" "$final_path/horde/config/conf.php"
cp ../conf/horde_imp_conf.php "$final_path/horde/imp/config/conf.php"
cp ../conf/horde_registry.php "$final_path/horde/config/registry.local.php"
ynh_replace_string "__PATH__" "$path_url" "$final_path/horde/config/registry.local.php"
@ -47,6 +50,7 @@ config_horde() {
cp ../conf/ingo_backends.php "$final_path/horde/ingo/config/backends.local.php"
ynh_store_file_checksum "$final_path/horde/config/conf.php"
ynh_store_file_checksum "$final_path/horde/imp/config/conf.php"
ynh_store_file_checksum "$final_path/horde/config/registry.local.php"
ynh_store_file_checksum "$final_path/horde/gollem/config/backends.local.php"
ynh_store_file_checksum "$final_path/horde/ingo/config/backends.local.php"

View file

@ -127,6 +127,7 @@ ynh_app_setting_set $app secret_key "$secret_key"
patch_app
# Configure Horde
ls -la /var/www/horde/horde/imp/config
config_horde
# Create a dedicated nginx config