Line 1: |
Line 1: |
| + | * The first if-statement below from the "Creating SME-QMAIL-user-templates" section from the 'Zarafa Install Script' does not correctly handle the situation where <tt>GlobalForward</tt> is <tt>enabled</tt> but an account has the <tt>zarafa</tt> property set to <tt>disabled</tt> ... |
| + | <syntaxhighlight lang="Bash"> |
| + | { |
| + | my \$zarafa = \$user->prop('zarafa') || 'disabled'; |
| + | my \$zarafa2 = \${'zarafa-server'}{GlobalForward} || 'disabled'; |
| + | |
| + | if (\$zarafa eq 'enabled' || \$zarafa2 eq 'enabled') |
| + | { return "| /usr/bin/zarafa-dagent -q \$USERNAME ; if [ \\$\\? -ne 0 ] ; then exit -1; else exit 99; fi;" |
| + | } |
| + | } |
| + | </syntaxhighlight> |
| + | Maybe this could work: |
| + | <syntaxhighlight lang="Bash"> |
| + | { |
| + | my \$zarafa = \$user->prop('zarafa') || ' '; |
| + | my \$zarafa2 = \${'zarafa-server'}{GlobalForward} || 'disabled'; |
| + | |
| + | if ((\$zarafa ne 'disabled' && \$zarafa2 eq 'enabled') || (\$zarafa eq 'enabled' && \$zarafa2 eq 'disabled')) |
| + | { return "| /usr/bin/zarafa-dagent -q \$USERNAME ; if [ \\$\\? -ne 0 ] ; then exit -1; else exit 99; fi;" |
| + | } |
| + | } |
| + | </syntaxhighlight> |
| + | |
| + | |
| *On 64-bit systems there are a few symbolic links and path not correct after installation | | *On 64-bit systems there are a few symbolic links and path not correct after installation |
| | | |
Line 14: |
Line 38: |
| both link to /lib but should be /lib64 | | both link to /lib but should be /lib64 |
| | | |
− | = Installing 7.1.x (work in progress !/not tested yet !)= | + | = Installing 7.1.x (works for me. Please test in your environment) = |
− | This script takes the example-config-files of ZCP to make a SME-template from it (cf 'replace'-actions refering to SME-db) | + | This script takes the example-config-files of ZCP to make a SME-template from it (cf 'replace'-actions refering to SME-db)<br> |
| 7.1.x needs a few changes in server.cfg and a new search.cfg-template to replace the indexer.cfg-template : [http://doc.zarafa.com/7.1/Administrator_Manual/en-US/html-single/index.html#_700to710] | | 7.1.x needs a few changes in server.cfg and a new search.cfg-template to replace the indexer.cfg-template : [http://doc.zarafa.com/7.1/Administrator_Manual/en-US/html-single/index.html#_700to710] |
| | | |
− | ==== INSTALLSCRIPT ==== | + | ==== INSTALLSCRIPT (7.1.x) ==== |
| ===== nano -w /etc/e-smith/events/actions/zarafa-install ===== | | ===== nano -w /etc/e-smith/events/actions/zarafa-install ===== |
| | | |
Line 733: |
Line 757: |
| mkdir -p /etc/e-smith/templates/etc/zarafa/search.cfg | | mkdir -p /etc/e-smith/templates/etc/zarafa/search.cfg |
| cat /usr/share/doc/zarafa-search/example-config/search.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg | | cat /usr/share/doc/zarafa-search/example-config/search.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg cleanup_lockfiles '{ ${'\''zarafa-search'\''}{cleanup_lockfiles} || '\''no'\''; }' | + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg coredump_enabled '{ ${'\''zarafa-search'\''}{coredump_enabled} || '\''no'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg limit_results '{ ${'\''zarafa-search'\''}{limit_results} || '\''0'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg limit_results '{ ${'\''zarafa-search'\''}{limit_results} || '\''0'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_method '{ ${'\''zarafa-search'\''}{log_method} || '\''file'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_method '{ ${'\''zarafa-search'\''}{log_method} || '\''file'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_level '{ ${'\''zarafa-search'\''}{log_level} || '\''2'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_level '{ ${'\''zarafa-search'\''}{log_level} || '\''2'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_timestamp '{ ${'\''zarafa-search'\''}{log_timestamp} || '\''1'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_timestamp '{ ${'\''zarafa-search'\''}{log_timestamp} || '\''1'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_interval '{ ${'\''zarafa-search'\''}{index_interval} || '\''5'\''; }' | + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg term_cache_size '{ ${'\''zarafa-search'\''}{term_cache_size} || '\''64M'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_threads '{ ${'\''zarafa-search'\''}{index_threads} || '\''1'\''; }' | + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_start '{ ${'\''zarafa-search'\''}{optimize_start} || '\''2'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_max_field_length '{ ${'\''zarafa-search'\''}{index_max_field_length} || '\''10000'\''; }' | + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_stop '{ ${'\''zarafa-search'\''}{optimize_stop} || '\''5'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_merge_factor '{ ${'\''zarafa-search'\''}{index_merge_factor} || '\''10'\''; }'
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_age '{ ${'\''zarafa-search'\''}{optimize_age} || '\''7'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_max_buffered_docs '{ ${'\''zarafa-search'\''}{index_max_buffered_docs} || '\''10'\''; }'
| |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_min_merge_docs '{ ${'\''zarafa-search'\''}{index_min_merge_docs} || '\''10'\''; }'
| |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_max_merge_docs '{ ${'\''zarafa-search'\''}{index_max_merge_docs} || '\''2147483647'\''; }'
| |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_term_interval '{ ${'\''zarafa-search'\''}{index_term_interval} || '\''128'\''; }'
| |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_cache_timeout '{ ${'\''zarafa-search'\''}{index_cache_timeout} || '\''0'\''; }' | |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachments '{ ${'\''zarafa-search'\''}{index_attachments} || '\''no'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachments '{ ${'\''zarafa-search'\''}{index_attachments} || '\''no'\''; }' |
− | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_max_size '{ ${'\''zarafa-search'\''}{index_attachment_max_size} || '\''5120'\''; }' | + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_max_size '{ ${'\''zarafa-search'\''}{index_attachment_max_size} || '\''5M'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_memory '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_memory} || '\''0'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_memory '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_memory} || '\''0'\''; }' |
| replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_cputime '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_cputime} || '\''0'\''; }' | | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_cputime '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_cputime} || '\''0'\''; }' |
Line 1,058: |
Line 1,077: |
| yes | | yes |
| <ENTER> | | <ENTER> |
| + | |
| + | ==== UPGRADESCRIPT ==== |
| + | |
| + | ===== Only if you are upgrading from zcp 7.0.x to 7.1.x -> Uninstall zarafa-indexer and remove templates, db-entries and links for zarafa-indexer : ===== |
| + | |
| + | rpm -e zarafa-indexer --nodeps |
| + | rm -rf /etc/e-smith/templates/etc/zarafa/indexer.cfg |
| + | db configuration delete zarafa-indexer |
| + | rm -f /etc/rc.d/rc7.d/S99zarafa-indexer |
| + | |
| + | ===== Only if you are upgrading from zcp 7.0.x to 7.1.x -> Delete the old update-script for zcp 7.0.x : ===== |
| + | |
| + | rm -f /etc/e-smith/events/actions/zarafa-update |
| + | |
| + | ===== nano -w /etc/e-smith/events/actions/zarafa-update ===== |
| + | |
| + | <nowiki> |
| + | #!/bin/sh |
| + | |
| + | /bin/echo "Stopping the Zarafa-services" |
| + | /etc/e-smith/events/actions/zarafa-services stop |
| + | |
| + | # |
| + | #--- zarafa-configuration-helper-action --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-configuration-helper-action ..." |
| + | echo |
| + | cat <<HERE1 > /etc/e-smith/events/actions/helpers.inc |
| + | # -*- Mode: sh -*- |
| + | replace() { |
| + | file=\$1 |
| + | option=\$2 |
| + | value=\$3 |
| + | |
| + | # escape &-signs, and % for sed |
| + | value=\`echo \$value | sed -e 's/\&/\\\\\&/g' -e 's/\%/\\\\\%/g'\` |
| + | sed -i -e "s%\([[:space:]]*\$option[[:space:]]*=[[:space:]]*\).*%\1\$value%" \$file |
| + | |
| + | } |
| + | HERE1 |
| + | |
| + | . /etc/e-smith/events/actions/helpers.inc |
| + | |
| + | # |
| + | #--- sysconfig config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-sysconfig-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/sysconfig/zarafa |
| + | cat /etc/sysconfig/zarafa | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/sysconfig/zarafa/zarafa |
| + | replace /etc/e-smith/templates/etc/sysconfig/zarafa/zarafa ZARAFA_LOCALE '"{ ${'\''zarafa'\''}{language} || '\''en_US.UTF-8'\'' ; }"' |
| + | replace /etc/e-smith/templates/etc/sysconfig/zarafa/zarafa ZARAFA_USERSCRIPT_LOCALE '"{ ${'\''zarafa'\''}{language} || '\''en_US.UTF-8'\'' ; }"' |
| + | |
| + | |
| + | # |
| + | #--- licensed config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-licensed-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/licensed.cfg |
| + | cat /usr/share/doc/zarafa-licensed/example-config/licensed.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/licensed.cfg/licensed.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/licensed.cfg/licensed.cfg log_method '{ ${'\''zarafa-licensed'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/licensed.cfg/licensed.cfg log_level '{ ${'\''zarafa-licensed'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/licensed.cfg/licensed.cfg log_timestamp '{ ${'\''zarafa-licensed'\''}{log_timestamp} || '\''1'\''; }' |
| + | |
| + | # |
| + | #--- server config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-server-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/server.cfg |
| + | cat /usr/share/doc/zarafa/example-config/server.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_tcp_enabled '{ ${'\''zarafa-server'\''}{server_tcp_enabled} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_tcp_port '{ ${'\''zarafa-server'\''}{TCPPort} || '\''236'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_pipe_enabled '{ ${'\''zarafa-server'\''}{server_pipe_enabled} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_name '{ ${'\''zarafa-server'\''}{server_name} || '\''Zarafa'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg database_engine '{ ${'\''zarafa-server'\''}{database_engine} || '\''mysql'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg allow_local_users '{ ${'\''zarafa-server'\''}{allow_local_users} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg local_admin_users '{ ${'\''zarafa-server'\''}{local_admin_users} || '\''root'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg system_email_address '{ ${'\''zarafa-server'\''}{system_email_address} || '\''postmaster@localhost'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg session_timeout '{ ${'\''zarafa-server'\''}{session_timeout} || '\''300'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg license_timeout '{ ${'\''zarafa-server'\''}{license_timeout} || '\''10'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg log_method '{ ${'\''zarafa-server'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg log_level '{ ${'\''zarafa-server'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg log_timestamp '{ ${'\''zarafa-server'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg audit_log_enabled '{ ${'\''zarafa-server'\''}{audit_log_enabled} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg audit_log_level '{ ${'\''zarafa-server'\''}{audit_log_level} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg audit_log_timestamp '{ ${'\''zarafa-server'\''}{audit_log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg mysql_host '{ ${'\''zarafa-server'\''}{mysql_host} || '\''localhost'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg mysql_port '{ ${'\''zarafa-server'\''}{mysql_port} || '\''3306'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg mysql_user '{ ${'\''zarafa-server'\''}{DbUser} || '\''zarafa'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg mysql_password '{ ${'\''zarafa-server'\''}{DbPassword}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg mysql_database '{ ${'\''zarafa-server'\''}{DbName} || '\''zarafa'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg attachment_storage '{ ${'\''zarafa-server'\''}{attachment_storage} || '\''files'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg attachment_path '/home/e-smith/files/zarafa' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg attachment_compression '{ ${'\''zarafa-server'\''}{attachment_compression} || '\''6'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_enabled '{ ${'\''zarafa-ssl'\''}{server_ssl_enabled} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_port '{ ${'\''zarafa-ssl'\''}{TCPPort} || '\''237'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_key_file '/home/e-smith/ssl.pem/{$SystemName}.{$DomainName}.pem' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_key_pass '{ ${'\''zarafa-server'\''}{DbPassword}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_ca_file '/home/e-smith/ssl.crt/{$SystemName}.{$DomainName}.crt' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_ca_path '/home/e-smith/ssl.crt' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg sslkeys_path '/home/e-smith/ssl.pem' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg threads '{ ${'\''zarafa-server'\''}{threads} || '\''8'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg watchdog_frequency '{ ${'\''zarafa-server'\''}{watchdog_frequency} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg watchdog_max_age '{ ${'\''zarafa-server'\''}{watchdog_max_age} || '\''500'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_max_keep_alive_requests '{ ${'\''zarafa-server'\''}{server_max_keep_alive_requests} || '\''100'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_recv_timeout '{ ${'\''zarafa-server'\''}{server_recv_timeout} || '\''5'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_read_timeout '{ ${'\''zarafa-server'\''}{server_read_timeout} || '\''60'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_send_timeout '{ ${'\''zarafa-server'\''}{server_send_timeout} || '\''60'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg softdelete_lifetime '{ ${'\''zarafa-server'\''}{softdelete_lifetime} || '\''30'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg sync_lifetime '{ ${'\''zarafa-server'\''}{sync_lifetime} || '\''365'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg sync_log_all_changes '{ ${'\''zarafa-server'\''}{sync_log_all_changes} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg enable_sso '{ ${'\''zarafa-server'\''}{enable_sso} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg enable_gab '{ ${'\''zarafa-server'\''}{enable_gab} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg auth_method '{ ${'\''zarafa-server'\''}{auth_method} || '\''plugin'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg pam_service '{ ${'\''zarafa-server'\''}{pam_service} || '\''passwd'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_cell_size '{ ${'\''zarafa-server'\''}{cache_cell_size} || '\''268435456'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_object_size '{ ${'\''zarafa-server'\''}{cache_object_size} || '\''5242880'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_indexedobject_size '{ ${'\''zarafa-server'\''}{cache_indexedobject_size} || '\''16777216'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_quota_size '{ ${'\''zarafa-server'\''}{cache_quota_size} || '\''1048576'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_quota_lifetime '{ ${'\''zarafa-server'\''}{cache_quota_lifetime} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_acl_size '{ ${'\''zarafa-server'\''}{cache_acl_size} || '\''1048576'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_store_size '{ ${'\''zarafa-server'\''}{cache_store_size} || '\''1048576'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_user_size '{ ${'\''zarafa-server'\''}{cache_user_size} || '\''1048576'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_userdetails_size '{ ${'\''zarafa-server'\''}{cache_userdetails_size} || '\''26214400'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_userdetails_lifetime '{ ${'\''zarafa-server'\''}{cache_userdetails_lifetime} || '\''5'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_server_size '{ ${'\''zarafa-server'\''}{cache_server_size} || '\''1048576'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg cache_server_lifetime '{ ${'\''zarafa-server'\''}{cache_server_lifetime} || '\''30'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg quota_warn '{ ${'\''zarafa-server'\''}{quota_warn} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg quota_soft '{ ${'\''zarafa-server'\''}{quota_soft} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg quota_hard '{ ${'\''zarafa-server'\''}{quota_hard} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg companyquota_warn '{ ${'\''zarafa-server'\''}{companyquota_warn} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg user_plugin '{ ${'\''zarafa-server'\''}{user_plugin} || '\''db'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg user_plugin_config '{ ${'\''zarafa-server'\''}{user_plugin_config}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg user_safe_mode '{ ${'\''zarafa-server'\''}{user_safe_mode} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg thread_stacksize '{ ${'\''zarafa-server'\''}{thread_stacksize} || '\''512'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg enable_hosted_zarafa '{ ${'\''zarafa-server'\''}{enable_hosted_zarafa} || '\''false'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg enable_distributed_zarafa '{ ${'\''zarafa-server'\''}{enable_distributed_zarafa} || '\''false'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg storename_format '{ ${'\''zarafa-server'\''}{storename_format} || '\''%f'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg loginname_format '{ ${'\''zarafa-server'\''}{loginname_format} || '\''%u'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg client_update_enabled '{ ${'\''zarafa-server'\''}{client_update_enabled} || '\''false'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg client_update_path '{ ${'\''zarafa-server'\''}{client_update_path} || '\''/var/lib/zarafa/client'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg client_update_log_level '{ ${'\''zarafa-server'\''}{client_update_log_level} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg hide_everyone '{ ${'\''zarafa-server'\''}{hide_everyone} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg hide_system '{ ${'\''zarafa-server'\''}{hide_system} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg search_enabled '{ ${'\''zarafa-server'\''}{search_enabled} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg search_timeout '{ ${'\''zarafa-server'\''}{search_timeout} || '\''10'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg enable_enhanced_ics '{ ${'\''zarafa-server'\''}{enable_enhanced_ics} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg sync_gab_realtime '{ ${'\''zarafa-server'\''}{sync_gab_realtime} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg disabled_features '{ ${'\''zarafa-server'\''}{disabled_features}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg max_deferred_records '{ ${'\''zarafa-server'\''}{max_deferred_records} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg max_deferred_records_folder '{ ${'\''zarafa-server'\''}{max_deferred_records_folder} || '\''20'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg coredump_enabled '{ ${'\''zarafa-server'\''}{coredump_enabled} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg server_ssl_enable_v2 '{ ${'\''zarafa-server'\''}{server_ssl_enable_v2} || '\''no'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- dagent config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-dagent-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/dagent.cfg |
| + | cat /usr/share/doc/zarafa-dagent/example-config/dagent.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg log_method '{ ${'\''zarafa-dagent'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg log_level '{ ${'\''zarafa-dagent'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg log_timestamp '{ ${'\''zarafa-dagent'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg log_raw_message '{ ${'\''zarafa-dagent'\''}{log_raw_message} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg lmtp_port '{ ${'\''zarafa-dagent'\''}{lmtp_port} || '\''2003'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg lmtp_max_threads '{ ${'\''zarafa-dagent'\''}{lmtp_max_threads} || '\''20'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg process_model '{ ${'\''zarafa-dagent'\''}{process_model} || '\''fork'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg spam_header_name '{ ${'\''zarafa-dagent'\''}{spam_header_name} || '\''X-Spam-Status'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg spam_header_value '{ ${'\''zarafa-dagent'\''}{spam_header_value} || '\''Yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg archive_on_delivery '{ ${'\''zarafa-dagent'\''}{archive_on_delivery} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/dagent.cfg/dagent.cfg set_rule_headers '{ ${'\''zarafa-dagent'\''}{set_rule_headers} || '\''yes'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- spooler config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-spooler-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/spooler.cfg |
| + | cat /usr/share/doc/zarafa-spooler/example-config/spooler.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg smtp_port '{ ${'\''zarafa-spooler'\''}{smtp_port} || '\''25'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg log_method '{ ${'\''zarafa-spooler'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg log_level '{ ${'\''zarafa-spooler'\''}{log_level} || '\''3'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg log_timestamp '{ ${'\''zarafa-spooler'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg max_threads '{ ${'\''zarafa-spooler'\''}{max_threads} || '\''5'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg fax_domain '{ ${'\''zarafa-spooler'\''}{fax_domain} || '\''fax.local'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg fax_international '{ ${'\''zarafa-spooler'\''}{fax_international} || '\''00'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg always_send_delegates '{ ${'\''zarafa-spooler'\''}{always_send_delegates} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg allow_redirect_spoofing '{ ${'\''zarafa-spooler'\''}{allow_redirect_spoofing} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg copy_delegate_mails '{ ${'\''zarafa-spooler'\''}{copy_delegate_mails} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg allow_delegate_meeting_request '{ ${'\''zarafa-spooler'\''}{allow_delegate_meeting_request} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg allow_send_to_everyone '{ ${'\''zarafa-spooler'\''}{allow_send_to_everyone} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg always_send_tnef '{ ${'\''zarafa-spooler'\''}{always_send_tnef} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg always_send_utf8 '{ ${'\''zarafa-spooler'\''}{always_send_utf8} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg charset_upgrade '{ ${'\''zarafa-spooler'\''}{charset_upgrade} || '\''windows-1252'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg expand_groups '{ ${'\''zarafa-spooler'\''}{expand_groups} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/spooler.cfg/spooler.cfg archive_on_send '{ ${'\''zarafa-spooler'\''}{archive_on_send} || '\''no'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- monitor config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-monitor-configuration-template ..." |
| + | echo "The monitor program sends quota warning mails to users who are over quota." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/monitor.cfg |
| + | cat /usr/share/doc/zarafa-monitor/example-config/monitor.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg log_method '{ ${'\''zarafa-monitor'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg log_level '{ ${'\''zarafa-monitor'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg log_timestamp '{ ${'\''zarafa-monitor'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg quota_check_interval '{ ${'\''zarafa-monitor'\''}{quota_check_interval} || '\''15'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/monitor.cfg/monitor.cfg mailquota_resend_interval '{ ${'\''zarafa-monitor'\''}{mailquota_resend_interval} || '\''1'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- gateway config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-gateway-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/gateway.cfg |
| + | cat /usr/share/doc/zarafa-gateway/example-config/gateway.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg server_socket 'http://localhost:{${'\''zarafa-server'\''}{TCPPort}||'\''236'\'';}/zarafa' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg pop3_enable '{ if (${'\''zarafa-pop3'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg pop3_port '{ ${'\''zarafa-pop3'\''}{TCPPort} || '\''8110'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg pop3s_enable '{ if (${'\''zarafa-pop3s'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg pop3s_port '{ ${'\''zarafa-pop3s'\''}{TCPPort} || '\''8995'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_enable '{ if (${'\''zarafa-imap'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_port '{ ${'\''zarafa-imap'\''}{TCPPort} || '\''8143'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imaps_enable '{ if (${'\''zarafa-imaps'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imaps_port '{ ${'\''zarafa-imaps'\''}{TCPPort} || '\''8993'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_only_mailfolders '{ ${'\''zarafa-imap'\''}{imap_only_mailfolders} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_public_folders '{ ${'\''zarafa-imap'\''}{imap_public_folders} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_capability_idle '{ ${'\''zarafa-imap'\''}{imap_capability_idle} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_max_messagesize '{ ${'\''zarafa-imap'\''}{imap_max_messagesize} || '\''134217728'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_generate_utf8 '{ ${'\''zarafa-imap'\''}{imap_generate_utf8} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_expunge_on_delete '{ ${'\''zarafa-imap'\''}{imap_expunge_on_delete} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg imap_store_rfc822 '{ ${'\''zarafa-imap'\''}{imap_store_rfc822} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg ssl_private_key_file '/home/e-smith/ssl.key/{$SystemName}.{$DomainName}.key' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg ssl_certificate_file '/home/e-smith/ssl.crt/{$SystemName}.{$DomainName}.crt' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg ssl_verify_client '{ ${'\''zarafa-gateway'\''}{ssl_verify_client} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg process_model '{ ${'\''zarafa-gateway'\''}{process_model} || '\''fork'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg log_method '{ ${'\''zarafa-gateway'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg log_level '{ ${'\''zarafa-gateway'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg log_timestamp '{ ${'\''zarafa-gateway'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/gateway.cfg/gateway.cfg ssl_enable_v2 '{ ${'\''zarafa-gateway'\''}{ssl_enable_v2} || '\''no'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- ical config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-ical-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/ical.cfg |
| + | cat /usr/share/doc/zarafa-ical/example-config/ical.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ical_enable '{ if (${'\''zarafa-ical'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ical_port '{ ${'\''zarafa-ical'\''}{TCPPort} || '\''8088'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg icals_enable '{ if (${'\''zarafa-icals'\''}{status} eq '\''enabled'\'') {'\''yes'\''} else {'\''no'\''}; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg icals_port '{ ${'\''zarafa-icals'\''}{TCPPort} || '\''8089'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg server_socket 'http://localhost:{${'\''zarafa-server'\''}{TCPPort}||'\''236'\'';}/zarafa' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg process_model '{ ${'\''zarafa-ical'\''}{process_model} || '\''fork'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg log_method '{ ${'\''zarafa-ical'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg log_level '{ ${'\''zarafa-ical'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg log_timestamp '{ ${'\''zarafa-ical'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ssl_private_key_file '/home/e-smith/ssl.key/{$SystemName}.{$DomainName}.key' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ssl_certificate_file '/home/e-smith/ssl.crt/{$SystemName}.{$DomainName}.crt' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ssl_verify_client '{ ${'\''zarafa-ical'\''}{ssl_verify_client} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg server_timezone '{$TimeZone}' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg default_charset '{ ${'\''zarafa-ical'\''}{default_charset} || '\''utf-8'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg enable_ical_get '{ ${'\''zarafa-ical'\''}{enable_ical_get} || '\''yes'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/ical.cfg/ical.cfg ssl_enable_v2 '{ ${'\''zarafa-ical'\''}{ssl_enable_v2} || '\''no'\''; }' |
| + | |
| + | |
| + | # |
| + | #--- search config --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-search-configuration-template ..." |
| + | echo |
| + | mkdir -p /etc/e-smith/templates/etc/zarafa/search.cfg |
| + | cat /usr/share/doc/zarafa-search/example-config/search.cfg | sed -e 's/\r$//g' > /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg coredump_enabled '{ ${'\''zarafa-search'\''}{coredump_enabled} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg limit_results '{ ${'\''zarafa-search'\''}{limit_results} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_method '{ ${'\''zarafa-search'\''}{log_method} || '\''file'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_level '{ ${'\''zarafa-search'\''}{log_level} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg log_timestamp '{ ${'\''zarafa-search'\''}{log_timestamp} || '\''1'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg term_cache_size '{ ${'\''zarafa-search'\''}{term_cache_size} || '\''64M'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_start '{ ${'\''zarafa-search'\''}{optimize_start} || '\''2'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_stop '{ ${'\''zarafa-search'\''}{optimize_stop} || '\''5'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg optimize_age '{ ${'\''zarafa-search'\''}{optimize_age} || '\''7'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachments '{ ${'\''zarafa-search'\''}{index_attachments} || '\''no'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_max_size '{ ${'\''zarafa-search'\''}{index_attachment_max_size} || '\''5M'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_memory '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_memory} || '\''0'\''; }' |
| + | replace /etc/e-smith/templates/etc/zarafa/search.cfg/search.cfg index_attachment_parser_max_cputime '{ ${'\''zarafa-search'\''}{index_attachment_parser_max_cputime} || '\''0'\''; }' |
| + | |
| + | |
| + | /bin/echo "webaccess config" |
| + | /bin/chown -R www:www /var/lib/zarafa-webaccess/tmp |
| + | /bin/chown -R www:www /var/lib/zarafa-webapp/tmp |
| + | FILE=/etc/httpd/conf.d/zarafa-webaccess.conf; if [ -a $FILE ]; then /bin/rm -f $FILE; fi |
| + | FILE=/etc/httpd/conf.d/zarafa-webapp.conf; if [ -a $FILE ]; then /bin/rm -f $FILE; fi |
| + | |
| + | |
| + | /bin/echo "Expanding Zarafa-templates" |
| + | /etc/e-smith/events/actions/zarafa-expand-templates |
| + | |
| + | /bin/echo "Expanding http.conf-template" |
| + | /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
| + | |
| + | /bin/echo "Restarting httpd" |
| + | /usr/bin/sv restart /service/httpd-e-smith |
| + | |
| + | /bin/echo "Starting Zarafa-services" |
| + | /etc/e-smith/events/actions/zarafa-services start |
| + | |
| + | /bin/echo "Setting permissions on files" |
| + | FILE=/var/log/zarafa/dagent.log; if [ -a $FILE ]; then /bin/chmod 666 $FILE; fi |
| + | </nowiki> |
| + | |
| + | ===== To save : ===== |
| + | CTRL + X |
| + | yes |
| + | <ENTER> |
| + | |
| + | ===== Execute zarafa-update ===== |
| + | |
| + | cd /etc/e-smith/events/actions/ |
| + | |
| + | ./zarafa-update |
| + | |
| + | ===== Only if you are upgrading from zcp 7.0.x to 7.1.x -> nano -w /etc/e-smith/events/actions/zarafa-update-to71 : ===== |
| + | <nowiki> |
| + | #!/usr/bin/env bash |
| + | clear |
| + | |
| + | /bin/echo "Stopping the Zarafa-services" |
| + | /etc/e-smith/events/actions/zarafa-services stop |
| + | |
| + | if [ `whoami` != "root" ]; then |
| + | echo "This installation must be run as user root." |
| + | echo "Become root, and run this script again." |
| + | echo |
| + | exit 1 |
| + | fi |
| + | |
| + | ########################################## |
| + | # Creating some Zarafa-actions |
| + | ########################################## |
| + | |
| + | # |
| + | #--- zarafa-expand-templates --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-expand-templates-action ..." |
| + | echo |
| + | cat <<HERE1 > /etc/e-smith/events/actions/zarafa-expand-templates |
| + | #!/bin/sh |
| + | /sbin/e-smith/expand-template /etc/zarafa/gateway.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/ical.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/server.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/unix.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/monitor.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/search.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/spooler.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/dagent.cfg |
| + | /sbin/e-smith/expand-template /etc/zarafa/licensed.cfg |
| + | /etc/e-smith/events/actions/qmail-update-user |
| + | HERE1 |
| + | |
| + | |
| + | # |
| + | #--- zarafa-services --- |
| + | # |
| + | echo |
| + | echo "Creating zarafa-services-action ..." |
| + | echo |
| + | cat <<HERE2 > /etc/e-smith/events/actions/zarafa-services |
| + | #!/bin/sh |
| + | FILE=/etc/rc.d/init.d/zarafa-licensed |
| + | if [ "\$1" == start ]; then |
| + | /etc/rc.d/init.d/zarafa-dagent start |
| + | /etc/rc.d/init.d/zarafa-gateway start |
| + | /etc/rc.d/init.d/zarafa-ical start |
| + | if [ -a \$FILE ]; then \$FILE start; fi |
| + | /etc/rc.d/init.d/zarafa-monitor start |
| + | /etc/rc.d/init.d/zarafa-spooler start |
| + | /etc/rc.d/init.d/zarafa-search start |
| + | /etc/rc.d/init.d/zarafa-server start |
| + | exit 0 |
| + | fi |
| + | if [ "\$1" == stop ]; then |
| + | /etc/rc.d/init.d/zarafa-dagent stop |
| + | /etc/rc.d/init.d/zarafa-gateway stop |
| + | /etc/rc.d/init.d/zarafa-ical stop |
| + | if [ -a \$FILE ]; then \$FILE stop; fi |
| + | /etc/rc.d/init.d/zarafa-search stop |
| + | /etc/rc.d/init.d/zarafa-spooler stop |
| + | /etc/rc.d/init.d/zarafa-server stop |
| + | /etc/rc.d/init.d/zarafa-monitor stop |
| + | exit 0 |
| + | fi |
| + | if [ "\$1" == restart ]; then |
| + | /etc/rc.d/init.d/zarafa-dagent stop |
| + | /etc/rc.d/init.d/zarafa-gateway stop |
| + | /etc/rc.d/init.d/zarafa-ical stop |
| + | if [ -a \$FILE ]; then \$FILE stop; fi |
| + | /etc/rc.d/init.d/zarafa-monitor stop |
| + | /etc/rc.d/init.d/zarafa-search stop |
| + | /etc/rc.d/init.d/zarafa-spooler stop |
| + | /etc/rc.d/init.d/zarafa-server stop |
| + | /etc/rc.d/init.d/zarafa-dagent start |
| + | /etc/rc.d/init.d/zarafa-gateway start |
| + | /etc/rc.d/init.d/zarafa-ical start |
| + | if [ -a \$FILE ]; then \$FILE start; fi |
| + | /etc/rc.d/init.d/zarafa-monitor start |
| + | /etc/rc.d/init.d/zarafa-server start |
| + | /etc/rc.d/init.d/zarafa-spooler start |
| + | /etc/rc.d/init.d/zarafa-search start |
| + | exit 0 |
| + | fi |
| + | if [ "\$1" == enabled ]; then |
| + | config setprop zarafa-gateway status enabled |
| + | config setprop zarafa-ical status enabled |
| + | if [ -a \$FILE ]; then config setprop zarafa-licensed status enabled; fi |
| + | config setprop zarafa-monitor status enabled |
| + | config setprop zarafa-server status enabled |
| + | config setprop zarafa-spooler status enabled |
| + | config setprop zarafa-search status enabled |
| + | config setprop zarafa-dagent status enabled |
| + | exit 0 |
| + | fi |
| + | if [ "\$1" == disabled ]; then |
| + | config setprop zarafa-gateway status disabled |
| + | config setprop zarafa-ical status disabled |
| + | if [ -a \$FILE ]; then config setprop zarafa-licensed status disabled; fi |
| + | config setprop zarafa-monitor status disabled |
| + | config setprop zarafa-server status disabled |
| + | config setprop zarafa-spooler status disabled |
| + | config setprop zarafa-search status disabled |
| + | config setprop zarafa-dagent status disabled |
| + | exit 0 |
| + | fi |
| + | echo "Usage: start|stop|restart|enabled|disabled" |
| + | exit 0 |
| + | HERE2 |
| + | |
| + | /bin/chmod 554 /etc/e-smith/events/actions/zarafa-expand-templates |
| + | /bin/chmod 554 /etc/e-smith/events/actions/zarafa-services |
| + | |
| + | ###################################### |
| + | # Setting up SME-db-entries |
| + | ###################################### |
| + | |
| + | /sbin/e-smith/db configuration set zarafa-search service status enabled |
| + | |
| + | ###################################### |
| + | # Setting up more symbolic links |
| + | ###################################### |
| + | |
| + | /bin/echo |
| + | /bin/echo "Setting up more symbolic links" |
| + | /bin/echo |
| + | |
| + | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-search |
| + | |
| + | /bin/echo "Expanding Zarafa-templates" |
| + | /etc/e-smith/events/actions/zarafa-expand-templates |
| + | |
| + | /bin/echo "Expanding http.conf-template" |
| + | /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
| + | |
| + | /bin/echo "Restarting httpd" |
| + | /usr/bin/sv restart /service/httpd-e-smith |
| + | |
| + | /bin/echo "Starting Zarafa-services" |
| + | /etc/e-smith/events/actions/zarafa-services start |
| + | </nowiki> |
| + | |
| + | ===== To save : ===== |
| + | <nowiki> |
| + | |
| + | CTRL + X |
| + | yes |
| + | <ENTER> |
| + | </nowiki> |
| + | |
| + | ===== Execute zarafa-update-to71 ===== |
| + | |
| + | /bin/chmod 554 /etc/e-smith/events/actions/zarafa-update-to71 |
| + | |
| + | cd /etc/e-smith/events/actions/ |
| + | |
| + | ./zarafa-update-to71 |
| + | |
| + | signal-event post-upgrade; signal-event reboot |