Changes

Jump to navigation Jump to search
13,279 bytes removed ,  01:40, 23 April 2014
qmail user template if statement does not handle all situations correctly
Line 1: Line 1: −
*'''New zarafa-7.0.x- and z-push-install/upgradescripts for SME8 <u>for testing</u>.'''<br> These new scipts always take the default NEW-config-files from the zarafa.rpms (found in /usr/share/doc/zarafa/example-config/) and make SME-templates of these default config-files !  So, you will always have the newest templated config-files, even after upgrading to a new Zarafa-version with altered config-files !<br> There is even more integration with the SME-perlDB too. (Most of the zarafa-config-keys can be set in the SME-perlDB !).<br>  
+
* 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> ...
*You can find a upgrade-path to Z-push 2.0 (tested with Zarafa 7.0.12 and Z-push 2.0.7).<br>
+
<syntaxhighlight lang="Bash">
*For version 1.3 of the Webapp you need minimum zarafa 7.0.12.
+
{
 +
  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';
   −
= INSTALLATION of Zarafa 7.0.x on SME8 =
+
  if ((\$zarafa ne 'disabled' && \$zarafa2 eq 'enabled') || (\$zarafa eq 'enabled' && \$zarafa2 eq 'disabled'))
== Search latest php53-mapi.rpm ==
+
  { return "| /usr/bin/zarafa-dagent -q \$USERNAME ; if [ \\$\\? -ne 0 ] ; then exit -1; else exit 99; fi;"
 +
  }
 +
}
 +
</syntaxhighlight>
   −
SME8 uses PHP5.3<br>
  −
Unfortunately, PHP 5.1 and PHP 5.3 are ABI incompatible, that means that PHP modules that were compiled for PHP 5.1 (like the php-mapi.rpm compiled in the Zarafa-rpms for RHEL 5) can not be run using PHP 5.3 :<br>
     −
https://community.zarafa.com/pg/blog/read/1837/support-for-php-53-in-rhel-5-via-new-php53mapi-rpm-package
+
*On 64-bit systems there are a few symbolic links and path not correct after installation
   −
So, search on the EPEL-repositories the latest php53-mapi-package.
+
<syntaxhighlight lang="Bash">
 +
if [ `getconf LONG_BIT` = "64" ]
 +
then
 +
  echo "64-bit, creating symbolic link"
 +
  ln -s /usr/lib64/zarafa /usr/lib/zarafa
 +
fi
 +
</syntaxhighlight>
 +
and
   −
  https://admin.fedoraproject.org/updates/search/php53-mapi?
+
  /usr/lib/libcrypto.so.0.9.8
 +
/usr/lib/libsssl.so.0.9.8
 +
both link to /lib but should be /lib64
   −
== Set the epel-repository (incl. epel-testing) :==
+
= 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)<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]
   −
/sbin/e-smith/db yum_repositories set epel repository \
+
==== INSTALLSCRIPT (7.1.x) ====
Name 'Epel - EL5' \
+
===== nano -w /etc/e-smith/events/actions/zarafa-install =====
BaseUrl 'http://download.fedoraproject.org/pub/epel/5/$basearch' \
  −
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch' \
  −
EnableGroups no \
  −
GPGCheck yes \
  −
GPGKey http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL \
  −
Visible no \
  −
status disabled
     −
  /sbin/e-smith/db yum_repositories set epel-testing repository \
+
  <nowiki>
Name 'Epel-testing - EL5' \
+
#!/usr/bin/env bash
BaseUrl 'http://download.fedoraproject.org/pub/epel/testing/5/$basearch' \
+
clear
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel5&arch=$basearch' \
  −
EnableGroups no \
  −
GPGCheck yes \
  −
GPGKey http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL \
  −
Visible no \
  −
status disabled
     −
signal-event yum-modify
+
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
   −
== Download via the Zarafawebsite the package for ZCP corresponding with the php53-mapi.rpm (cf. version above) ==
+
##########################################
 +
# Creating some Zarafa-actions
 +
##########################################
   −
Make an installdirectory (ex. : /root/InstallZarafa)
+
#
 
+
#--- zarafa-expand-templates ---
mkdir -p /root/InstallZarafa
+
#
 +
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
   −
Go (cd /...) to the installdirectory (ex. : /root/InstallZarafa) :
     −
cd /to the installdirectory
+
#
 
+
#--- zarafa-services ---
ex.:
+
#
+
echo
cd /root/InstallZararafa
+
echo "Creating zarafa-services-action ..."
 
+
echo
wget http://download.zarafa.com/community/final/7.0/[version]/zcp-[version]-rhel-5-[cpu-arch]-free.tar.gz
+
cat <<HERE2 > /etc/e-smith/events/actions/zarafa-services
 
+
#!/bin/sh
The 'free'-version has the ability to connect with Microsoft Outlook (default 3 users for free, buy zarafa-CAL's if you want more).
+
FILE=/etc/rc.d/init.d/zarafa-licensed
 
+
if [ "\$1" == start ]; then
== Unpack the corresponding package for ZCP :==
+
/etc/rc.d/init.d/zarafa-dagent start
 
+
  /etc/rc.d/init.d/zarafa-gateway start
  tar -zxvf zcp-*
+
  /etc/rc.d/init.d/zarafa-ical start
 
+
if [ -a \$FILE ]; then \$FILE start; fi
== Go (cd ./zcp-...) to the created subdirectory (zcp-...) :==
+
  /etc/rc.d/init.d/zarafa-monitor start
 
+
  /etc/rc.d/init.d/zarafa-spooler start
  cd ./zcp- ...
+
  /etc/rc.d/init.d/zarafa-search start
 
+
/etc/rc.d/init.d/zarafa-server start
Remove the devel packages
+
exit 0
 
+
fi
  rm -f *dev*.rpm
+
if [ "\$1" == stop ]; then
 
+
  /etc/rc.d/init.d/zarafa-dagent stop
Move the windows-directory to an installshare in your network
+
/etc/rc.d/init.d/zarafa-gateway stop
 
+
  /etc/rc.d/init.d/zarafa-ical stop
== Download the latest webapp.rpm too in the same subdirectory :==
+
if [ -a \$FILE ]; then \$FILE stop; fi
 
+
  /etc/rc.d/init.d/zarafa-search stop
  wget http://download.zarafa.com/community/final/WebApp/[version]/rhel/[zarafa-webapp-version.noarch.rpm]
+
  /etc/rc.d/init.d/zarafa-spooler stop
 
+
/etc/rc.d/init.d/zarafa-server stop
== Install all rpm's in the unpacked package of ZCP and the webapp.rpm too :==
+
  /etc/rc.d/init.d/zarafa-monitor stop 
 
+
exit 0
  yum localinstall *.rpm
  −
 
  −
All packages have dependencies that cannot be resolved if you install only part of the rpm's.
  −
 
  −
== Remove the default php-mapi.rpm ==
  −
 
  −
We have to remove the installation of the default php-mapi (because it's not built for php 5.3).
  −
 
  −
  rpm -e php-mapi --nodeps
  −
 
  −
== Install the php53-mapi.rpm ==
  −
 
  −
Install the php53-mapi.rpm of the EPEL-repository :
  −
 
  −
-If you downloaded the rpm :
  −
 
  −
  rpm -Uvh --force php53-mapi
  −
 
  −
-If you did set the EPEL-repository :
  −
 
  −
  yum install php53-mapi --enablerepo=epel --enablerepo=epel-testing
  −
 
  −
== Make install/update-actions ==
  −
=== INSTALLSCRIPT ===
  −
==== nano -w /etc/e-smith/events/actions/zarafa-install ====
  −
 
  −
  <nowiki>
  −
#!/usr/bin/env bash
  −
clear
  −
 
  −
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
 
fi
 
+
if [ "\$1" == restart ]; then
##########################################
+
/etc/rc.d/init.d/zarafa-dagent stop
# Creating some Zarafa-actions
+
/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
#--- zarafa-expand-templates ---
+
/etc/rc.d/init.d/zarafa-search stop
#
+
/etc/rc.d/init.d/zarafa-spooler stop
echo
+
/etc/rc.d/init.d/zarafa-server stop
echo "Creating zarafa-expand-templates-action ..."
+
  /etc/rc.d/init.d/zarafa-dagent start
echo
+
  /etc/rc.d/init.d/zarafa-gateway start
cat <<HERE1 > /etc/e-smith/events/actions/zarafa-expand-templates
+
  /etc/rc.d/init.d/zarafa-ical start
#!/bin/sh
+
  if [ -a \$FILE ]; then \$FILE start; fi
/sbin/e-smith/expand-template /etc/zarafa/gateway.cfg
+
  /etc/rc.d/init.d/zarafa-monitor start
/sbin/e-smith/expand-template /etc/zarafa/ical.cfg
+
/etc/rc.d/init.d/zarafa-server start
/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/indexer.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-spooler start
  /etc/rc.d/init.d/zarafa-indexer start
+
  /etc/rc.d/init.d/zarafa-search start
/etc/rc.d/init.d/zarafa-server start
   
  exit 0
 
  exit 0
 
fi
 
fi
if [ "\$1" == stop ]; then
+
if [ "\$1" == enabled ]; then
  /etc/rc.d/init.d/zarafa-dagent stop
+
  config setprop zarafa-gateway status enabled
/etc/rc.d/init.d/zarafa-gateway stop
+
  config setprop zarafa-ical status enabled
  /etc/rc.d/init.d/zarafa-ical stop
+
  if [ -a \$FILE ]; then config setprop zarafa-licensed status enabled; fi
  if [ -a \$FILE ]; then \$FILE stop; fi
+
  config setprop zarafa-monitor status enabled
  /etc/rc.d/init.d/zarafa-indexer stop
+
config setprop zarafa-server status enabled
  /etc/rc.d/init.d/zarafa-spooler stop
+
  config setprop zarafa-spooler status enabled
  /etc/rc.d/init.d/zarafa-server stop
+
  config setprop zarafa-search status enabled
  /etc/rc.d/init.d/zarafa-monitor stop 
+
  config setprop zarafa-dagent status enabled
 
  exit 0
 
  exit 0
 
fi
 
fi
if [ "\$1" == restart ]; then
+
if [ "\$1" == disabled ]; then
/etc/rc.d/init.d/zarafa-dagent stop
+
  config setprop zarafa-gateway status disabled
/etc/rc.d/init.d/zarafa-gateway stop
+
  config setprop zarafa-ical status disabled
/etc/rc.d/init.d/zarafa-ical stop
+
  if [ -a \$FILE ]; then config setprop zarafa-licensed status disabled; fi
if [ -a \$FILE ]; then \$FILE stop; fi
+
  config setprop zarafa-monitor status disabled
/etc/rc.d/init.d/zarafa-monitor stop
  −
/etc/rc.d/init.d/zarafa-indexer 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-indexer 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-indexer 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-server status disabled
 
  config setprop zarafa-spooler status disabled
 
  config setprop zarafa-spooler status disabled
  config setprop zarafa-indexer status disabled
+
  config setprop zarafa-search status disabled
 
  config setprop zarafa-dagent status disabled
 
  config setprop zarafa-dagent status disabled
 
  exit 0
 
  exit 0
Line 673: Line 614:  
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_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 hide_system '{ ${'\''zarafa-server'\''}{hide_system} || '\''yes'\''; }'
replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg index_services_enabled '{ ${'\''zarafa-server'\''}{index_services_enabled} || '\''no'\''; }'
+
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 index_services_search_timeout '{ ${'\''zarafa-server'\''}{index_services_search_timeout} || '\''10'\''; }'
+
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 index_services_prefix_chars '{ ${'\''zarafa-server'\''}{index_services_prefix_chars} || '\''3'\''; }'
   
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 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 sync_gab_realtime '{ ${'\''zarafa-server'\''}{sync_gab_realtime} || '\''yes'\''; }'
Line 681: Line 621:  
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 '{ ${'\''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 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'\''; }'
      Line 778: Line 720:  
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_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 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'\''; }'
      Line 803: Line 746:  
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 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 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'\''; }'
       
#
 
#
#--- indexer config ---
+
#--- search config ---
 
#
 
#
 
echo
 
echo
echo "Creating zarafa-indexer-configuration-template ..."
+
echo "Creating zarafa-search-configuration-template ..."
 
echo
 
echo
mkdir -p /etc/e-smith/templates/etc/zarafa/indexer.cfg
+
mkdir -p /etc/e-smith/templates/etc/zarafa/search.cfg
cat /usr/share/doc/zarafa-indexer/example-config/indexer.cfg | sed -e 's/\r$//g' >  /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.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/indexer.cfg/indexer.cfg cleanup_lockfiles '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg limit_results '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_method '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_level '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_timestamp '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_interval '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_threads '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_max_field_length '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_merge_factor '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_max_buffered_docs '{ ${'\''zarafa-indexer'\''}{index_max_buffered_docs} || '\''10'\''; }'
+
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/indexer.cfg/indexer.cfg index_min_merge_docs '{ ${'\''zarafa-indexer'\''}{index_min_merge_docs} || '\''10'\''; }'
+
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/indexer.cfg/indexer.cfg index_max_merge_docs '{ ${'\''zarafa-indexer'\''}{index_max_merge_docs} || '\''2147483647'\''; }'
+
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/indexer.cfg/indexer.cfg index_term_interval '{ ${'\''zarafa-indexer'\''}{index_term_interval} || '\''128'\''; }'
+
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/indexer.cfg/indexer.cfg index_cache_timeout '{ ${'\''zarafa-indexer'\''}{index_cache_timeout} || '\''0'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachments '{ ${'\''zarafa-indexer'\''}{index_attachments} || '\''no'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_max_size '{ ${'\''zarafa-indexer'\''}{index_attachment_max_size} || '\''5120'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_parser_max_memory '{ ${'\''zarafa-indexer'\''}{index_attachment_parser_max_memory} || '\''0'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_parser_max_cputime '{ ${'\''zarafa-indexer'\''}{index_attachment_parser_max_cputime} || '\''0'\''; }'
        Line 927: Line 866:  
/sbin/e-smith/db configuration setprop mysqld InnoDB enabled
 
/sbin/e-smith/db configuration setprop mysqld InnoDB enabled
 
/sbin/e-smith/db configuration setprop smtpd tnef2mime disabled
 
/sbin/e-smith/db configuration setprop smtpd tnef2mime disabled
/sbin/e-smith/db configuration setprop zarafa-server access private status enabled TCPPort 236 index_services_enabled yes
+
/sbin/e-smith/db configuration setprop zarafa-server access private status enabled TCPPort 236 search_enabled yes
 
/bin/echo  
 
/bin/echo  
 
/bin/echo "Enter your user plugin."
 
/bin/echo "Enter your user plugin."
Line 967: Line 906:  
/sbin/e-smith/db configuration set zarafa-spooler service status enabled
 
/sbin/e-smith/db configuration set zarafa-spooler service status enabled
 
/sbin/e-smith/db configuration set zarafa-monitor service status enabled
 
/sbin/e-smith/db configuration set zarafa-monitor service status enabled
/sbin/e-smith/db configuration set zarafa-indexer service status enabled
+
/sbin/e-smith/db configuration set zarafa-search service status enabled
 
/sbin/e-smith/db configuration set zarafa-licensed service status enabled
 
/sbin/e-smith/db configuration set zarafa-licensed service status enabled
 
/sbin/e-smith/db configuration set zarafa-dagent service status enabled
 
/sbin/e-smith/db configuration set zarafa-dagent service status enabled
Line 1,038: Line 977:  
/bin/echo "Setting up more symbolic links"
 
/bin/echo "Setting up more symbolic links"
 
/bin/echo
 
/bin/echo
ln -s /lib/libcrypto.so.0.9.8e /usr/lib/libcrypto.so.0.9.8
+
if [ `getconf LONG_BIT` = "64" ]; then
ln -s /lib/libssl.so.0.9.8e /usr/lib/libssl.so.0.9.8
+
ln -s /usr/lib64/zarafa /usr/lib/zarafa
 +
ln -s /lib64/libcrypto.so.0.9.8e /usr/lib/libcrypto.so.0.9.8
 +
ln -s /lib64/libssl.so.0.9.8e /usr/lib/libssl.so.0.9.8
 +
else
 +
ln -s /lib/libcrypto.so.0.9.8e /usr/lib/libcrypto.so.0.9.8
 +
ln -s /lib/libssl.so.0.9.8e /usr/lib/libssl.so.0.9.8
 +
fi
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-dagent
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-dagent
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-gateway
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-gateway
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-indexer
+
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-search
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-licensed
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-licensed
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-monitor
 
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-monitor
Line 1,128: Line 1,073:  
</nowiki>
 
</nowiki>
   −
==== To save : ====
+
===== To save : =====
 
  CTRL + X
 
  CTRL + X
 
  yes
 
  yes
 
  <ENTER>
 
  <ENTER>
   −
=== UPGRADESCRIPT ===
+
==== UPGRADESCRIPT ====
==== nano -w /etc/e-smith/events/actions/zarafa-update ====
+
 
 +
===== 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>
 
  <nowiki>
Line 1,270: Line 1,227:  
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_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 hide_system '{ ${'\''zarafa-server'\''}{hide_system} || '\''yes'\''; }'
replace /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg index_services_enabled '{ ${'\''zarafa-server'\''}{index_services_enabled} || '\''no'\''; }'
+
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 index_services_search_timeout '{ ${'\''zarafa-server'\''}{index_services_search_timeout} || '\''10'\''; }'
+
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 index_services_prefix_chars '{ ${'\''zarafa-server'\''}{index_services_prefix_chars} || '\''3'\''; }'
   
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 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 sync_gab_realtime '{ ${'\''zarafa-server'\''}{sync_gab_realtime} || '\''yes'\''; }'
Line 1,278: Line 1,234:  
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 '{ ${'\''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 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'\''; }'
      Line 1,375: Line 1,333:  
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_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 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'\''; }'
      Line 1,400: Line 1,359:  
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 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 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'\''; }'
       
#
 
#
#--- indexer config ---
+
#--- search config ---
 
#
 
#
 
echo
 
echo
echo "Creating zarafa-indexer-configuration-template ..."
+
echo "Creating zarafa-search-configuration-template ..."
 
echo
 
echo
mkdir -p /etc/e-smith/templates/etc/zarafa/indexer.cfg
+
mkdir -p /etc/e-smith/templates/etc/zarafa/search.cfg
cat /usr/share/doc/zarafa-indexer/example-config/indexer.cfg | sed -e 's/\r$//g' >  /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.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/indexer.cfg/indexer.cfg cleanup_lockfiles '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg limit_results '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_method '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_level '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg log_timestamp '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_interval '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_threads '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_max_field_length '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_merge_factor '{ ${'\''zarafa-indexer'\''}{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/indexer.cfg/indexer.cfg index_max_buffered_docs '{ ${'\''zarafa-indexer'\''}{index_max_buffered_docs} || '\''10'\''; }'
+
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/indexer.cfg/indexer.cfg index_min_merge_docs '{ ${'\''zarafa-indexer'\''}{index_min_merge_docs} || '\''10'\''; }'
+
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/indexer.cfg/indexer.cfg index_max_merge_docs '{ ${'\''zarafa-indexer'\''}{index_max_merge_docs} || '\''2147483647'\''; }'
+
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/indexer.cfg/indexer.cfg index_term_interval '{ ${'\''zarafa-indexer'\''}{index_term_interval} || '\''128'\''; }'
+
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/indexer.cfg/indexer.cfg index_cache_timeout '{ ${'\''zarafa-indexer'\''}{index_cache_timeout} || '\''0'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachments '{ ${'\''zarafa-indexer'\''}{index_attachments} || '\''no'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_max_size '{ ${'\''zarafa-indexer'\''}{index_attachment_max_size} || '\''5120'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_parser_max_memory '{ ${'\''zarafa-indexer'\''}{index_attachment_parser_max_memory} || '\''0'\''; }'
  −
replace /etc/e-smith/templates/etc/zarafa/indexer.cfg/indexer.cfg index_attachment_parser_max_cputime '{ ${'\''zarafa-indexer'\''}{index_attachment_parser_max_cputime} || '\''0'\''; }'
        Line 1,453: Line 1,408:  
</nowiki>
 
</nowiki>
   −
==== To save : ====
+
===== To save : =====
 
  CTRL + X
 
  CTRL + X
 
  yes
 
  yes
 
  <ENTER>
 
  <ENTER>
   −
== Execute zarafa-install (see script above !!!!) ==
+
===== Execute zarafa-update =====
 
  −
/bin/chmod 554 /etc/e-smith/events/actions/zarafa-install
      
  cd /etc/e-smith/events/actions/
 
  cd /etc/e-smith/events/actions/
   −
  ./zarafa-install
+
  ./zarafa-update
   −
signal-event post-upgrade; signal-event reboot
+
===== 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
   −
= UPGRADING of Zarafa (7.0.x -> 7.0.x) =
+
/bin/echo "Stopping the Zarafa-services"
== Download via the Zarafawebsite the package for ZCP corresponding with the newest php53-mapi.rpm (cf. version above) ==
+
/etc/e-smith/events/actions/zarafa-services stop
   −
Go (cd /...) to the installdirectory (ex. : /root/InstallZarafa) :
+
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
   −
cd /to the installdirectory
+
##########################################
 +
# Creating some Zarafa-actions
 +
##########################################
   −
ex.:
+
#
+
#--- zarafa-expand-templates ---
cd /root/InstallZararafa
+
#
 +
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
   −
wget http://download.zarafa.com/community/final/7.0/[version]/zcp-[version]-rhel-5-[cpu-arch]-free.tar.gz
     −
== Unpack the corresponding package for ZCP :==
+
#
 
+
#--- zarafa-services ---
Go (cd /...) to the installdirectory (if you haven't done this yet) :
+
#
 
+
echo
cd /to the installdirectory
+
echo "Creating zarafa-services-action ..."
 
+
echo
And unpack :
+
cat <<HERE2 > /etc/e-smith/events/actions/zarafa-services
 
+
#!/bin/sh
tar -zxvf zcp-*
+
FILE=/etc/rc.d/init.d/zarafa-licensed
 
+
if [ "\$1" == start ]; then
== Go  (cd ./zcp-...) to the created subdirectory (zcp-...) :==
+
  /etc/rc.d/init.d/zarafa-dagent start
 
+
/etc/rc.d/init.d/zarafa-gateway start
  cd ./zcp- ...
+
  /etc/rc.d/init.d/zarafa-ical start
 
+
  if [ -a \$FILE ]; then \$FILE start; fi
  '''Remove the devel packages'''
+
/etc/rc.d/init.d/zarafa-monitor start
  '''Move the windows-directory to an installshare in your network'''
+
  /etc/rc.d/init.d/zarafa-spooler start
 
+
/etc/rc.d/init.d/zarafa-search start
== Download the latest webapp.rpm too in the same subdirectory :==
+
/etc/rc.d/init.d/zarafa-server start
 
+
  exit 0
  wget http://download.zarafa.com/community/final/WebApp/[version]/rhel/[zarafa-webapp-version.noarch.rpm]
+
fi
 
+
if [ "\$1" == stop ]; then
== Remove the existing php53-mapi.rpm first : ==
+
/etc/rc.d/init.d/zarafa-dagent stop
 
+
  /etc/rc.d/init.d/zarafa-gateway stop
  rpm -e php53-mapi --nodeps
+
/etc/rc.d/init.d/zarafa-ical stop
 
+
if [ -a \$FILE ]; then \$FILE stop; fi
== Install all rpm's in the unpacked package of ZCP and the webapp.rpm too :==
+
  /etc/rc.d/init.d/zarafa-search stop
 
+
  /etc/rc.d/init.d/zarafa-spooler stop
  yum localinstall *.rpm
+
/etc/rc.d/init.d/zarafa-server stop
 
+
/etc/rc.d/init.d/zarafa-monitor stop 
All packages have dependencies that cannot be resolved if you install only part of the rpm's.
+
  exit 0
 
+
fi
If you only want to upgrade one package (ex. the Webapp) :
+
if [ "\$1" == restart ]; then
 
+
/etc/rc.d/init.d/zarafa-dagent stop
  cd /to the new Webapp.rpm
+
/etc/rc.d/init.d/zarafa-gateway stop
  rpm -Uvh --force zarafa-webapp-[version].noarch
+
  /etc/rc.d/init.d/zarafa-ical stop
 
+
if [ -a \$FILE ]; then \$FILE stop; fi
== Remove the default php-mapi.rpm ==
+
  /etc/rc.d/init.d/zarafa-monitor stop
 
+
/etc/rc.d/init.d/zarafa-search stop
We have to remove the installation of the default php-mapi (because it's not built for php 5.3).
+
  /etc/rc.d/init.d/zarafa-spooler stop
 
+
/etc/rc.d/init.d/zarafa-server stop
  rpm -e php-mapi --nodeps
+
  /etc/rc.d/init.d/zarafa-dagent start
 
+
/etc/rc.d/init.d/zarafa-gateway start
== Install the php53-mapi.rpm ==
+
  /etc/rc.d/init.d/zarafa-ical start
 
+
  if [ -a \$FILE ]; then \$FILE start; fi
Install the php53-mapi.rpm of the EPEL-repository :
+
/etc/rc.d/init.d/zarafa-monitor start
 
+
/etc/rc.d/init.d/zarafa-server start
-If you downloaded the rpm :
+
  /etc/rc.d/init.d/zarafa-spooler start
 
+
/etc/rc.d/init.d/zarafa-search start
  rpm -Uvh --force php53-mapi
+
exit 0
 
+
fi
-If you did set the EPEL-repository :
+
if [ "\$1" == enabled ]; then
 
+
config setprop zarafa-gateway status enabled
  yum install php53-mapi --enablerepo=epel --enablerepo=epel-testing
+
config setprop zarafa-ical status enabled
 
+
if [ -a \$FILE ]; then config setprop zarafa-licensed status enabled; fi
== Execute zarafa-update (see script above !!!!) ==
+
config setprop zarafa-monitor status enabled
 
+
  config setprop zarafa-server status enabled
  cd /etc/e-smith/events/actions/
+
config setprop zarafa-spooler status enabled
 
+
config setprop zarafa-search status enabled
  ./zarafa-update
+
config setprop zarafa-dagent status enabled
 
+
  exit 0
OPTIONAL : Search in the Zarafa-releasenotes for new keys/options in the config-files and adjust the values of these new keys/options in the zarafa-config-templates :
+
fi
 
+
if [ "\$1" == disabled ]; then
  http://doc.zarafa.com/7.0/Release_Notes/en-US/html-single/
+
config setprop zarafa-gateway status disabled
 
+
config setprop zarafa-ical status disabled
  signal-event post-upgrade; signal-event reboot
+
if [ -a \$FILE ]; then config setprop zarafa-licensed status disabled; fi
 
+
config setprop zarafa-monitor status disabled
= INSTALLATION of Z-push (1.5.x or 2.0.x) =
+
config setprop zarafa-server status disabled
== VERSION 1.5.x ==
+
config setprop zarafa-spooler status disabled
=== Download the Z-push-package (version 1.5 !!)===
+
config setprop zarafa-search status disabled
 
+
config setprop zarafa-dagent status disabled
  wget http://zarafa-deutschland.de/z-push-download/final/1.5/[z-push-latest version]
+
  exit 0
 
+
fi
Save in an installdirectory, ex. : root/InstallZPush
+
echo "Usage: start|stop|restart|enabled|disabled"
 
+
exit 0
=== Unpack the package for Z-push :===
+
HERE2
 
  −
Go (cd /...) to the installdirectory (if you haven't done this yet) :
  −
 
  −
  cd /to the installdirectory
  −
 
  −
And unpack :
  −
 
  −
  tar -zxvf z-push-[latest version] -C /var/www/html
  −
 
  −
=== Change the name of the created z-push-directory in /var/www/html to 'z-push'===
  −
 
  −
=== INSTALLSCRIPT ===
  −
==== nano -w /etc/e-smith/events/actions/z-push-install ====
  −
  <nowiki>
  −
#!/bin/sh
     −
#
+
/bin/chmod 554 /etc/e-smith/events/actions/zarafa-expand-templates
#--- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ---
+
/bin/chmod 554 /etc/e-smith/events/actions/zarafa-services
#
  −
echo
  −
echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ..."
  −
echo
  −
cat <<HERE1 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases
  −
{
  −
    # vim: ft=perl:
     −
    \$haveSSL = (exists \${modSSL}{status} and \${modSSL}{status} eq "enabled") ?  'yes' : 'no';
+
######################################
    my \$zwebmailStatus = \$zarafa{'status'} || "disabled";
+
# Setting up SME-db-entries
    my \$zwebmailAccessType = \$zarafa{'access'} || "SSL";
+
######################################
   −
    my \$dirs;
+
/sbin/e-smith/db configuration set zarafa-search service status enabled
    \$dirs{zarafa} = '/usr/share/zarafa-webaccess';
  −
    \$dirs{webaccess} = '/usr/share/zarafa-webaccess';
  −
    \$dirs{webmail} = '/usr/share/zarafa-webaccess';
  −
    if (\$imp{'status'} eq 'enabled') {\$dirs{webmail} = ''};
  −
    \$dirs{webapp} = '/usr/share/zarafa-webapp';
  −
    \$dirs{'Microsoft-Server-ActiveSync'} = '/var/www/html/z-push/index.php';
     −
    return "    # Zarafa is disabled in this VirtualHost\n"
+
######################################
                unless \$zwebmailStatus eq 'enabled';
+
# Setting up more symbolic links
 +
######################################
   −
    foreach \$place ('zarafa','webmail','webaccess','webapp','Microsoft-Server-ActiveSync')
+
/bin/echo
    {
+
/bin/echo "Setting up more symbolic links"
        if ((\$port eq "80") && (\$haveSSL eq 'yes') && (\$zwebmailAccessType eq 'SSL'))
+
/bin/echo
        {
  −
            \$OUT .= "    RewriteRule ^/\$place(/.*|\\$)    https://%{HTTP_HOST}/\$place\\\$1 [L,R]\n";
  −
        } else {
  −
            if ((\$dirs{\$place}) ne '') {\$OUT .= "    Alias /\$place  \$dirs{\$place}\n"};
  −
        }
  −
    }
  −
}
  −
HERE1
     −
#
+
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-search
#--- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ---
  −
#
  −
echo
  −
echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ..."
  −
echo
  −
cat <<HERE2 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias
  −
{
  −
    my \$zstatus = \$zarafa{'status'};
     −
    if (defined \$zstatus && \$zstatus eq 'enabled')
+
/bin/echo "Expanding Zarafa-templates"
    {
+
/etc/e-smith/events/actions/zarafa-expand-templates
        \$OUT .= qq(
  −
#--------------------------------------------------------------------
  −
# Zarafa specific configuration files.
  −
#--------------------------------------------------------------------
     −
Alias /zarafa /usr/share/zarafa-webaccess/
+
/bin/echo "Expanding http.conf-template"
<Directory /usr/share/zarafa-webaccess/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php
  −
  php_flag magic_quotes_gpc off
  −
  php_flag track_vars on
  −
</Directory>
  −
 
  −
Alias /webapp /usr/share/zarafa-webapp/
  −
<Directory /usr/share/zarafa-webapp/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php
  −
  php_flag magic_quotes_gpc off
  −
  php_flag track_vars on
  −
</Directory>
  −
   
  −
<Directory /var/www/html/>
  −
    Options -Indexes
  −
    AllowOverride All
  −
    order allow,deny
  −
    allow from all
  −
    AddType application/x-httpd-php .php .php3
  −
    php_flag  magic_quotes_gpc  off
  −
</Directory>
  −
 
  −
<Directory /var/www/html/z-push/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php
  −
  php_flag magic_quotes_gpc off
  −
  php_flag register_globals off
  −
  php_flag magic_quotes_runtime off
  −
  php_flag short_open_tag on
  −
</Directory>
  −
 
  −
);
  −
    }   
  −
    else
  −
    {
  −
      \$OUT .= "# Zarafa Webmail is not configured as it is disabled in the config db";
  −
    }
  −
}
  −
HERE2
  −
 
  −
######################################
  −
# Configuration of Z-push
  −
######################################
  −
 
  −
/bin/echo
  −
/bin/echo "Configuration of Z-push"
  −
/bin/echo
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
 
  −
/bin/echo
  −
/bin/echo "Need to debug Z-push ?"
  −
/bin/echo "Values: yes or no."
  −
/bin/echo
  −
read DEBUGZPUSH
  −
if [ "$DEBUGZPUSH" == yes ]; then
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/touch /var/www/html/z-push/debug.txt; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chown www:www /var/www/html/z-push/debug.txt; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chmod 755 /var/www/html/z-push/debug.txt; fi
  −
else
  −
rm -f /var/www/html/z-push/debug.txt
  −
fi
  −
 
  −
/bin/echo
  −
/bin/echo "Expanding http.conf-template"
  −
/bin/echo
  −
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
  −
 
  −
/bin/echo
  −
/bin/echo "Restarting httpd"
  −
/bin/echo
  −
/usr/bin/sv restart /service/httpd-e-smith
  −
 
  −
</nowiki>
  −
 
  −
==== To save : ====
  −
CTRL + X
  −
yes
  −
<ENTER>
  −
 
  −
=== UPGRADESCRIPT ===
  −
==== nano -w /etc/e-smith/events/actions/z-push-update ====
  −
<nowiki>
  −
#!/bin/sh
  −
 
  −
######################################
  −
# Configuration of Z-push
  −
######################################
  −
 
  −
/bin/echo
  −
/bin/echo "Configuration of Z-push"
  −
/bin/echo
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
 
  −
/bin/echo
  −
/bin/echo "Need to debug Z-push ?"
  −
/bin/echo "Values: yes or no."
  −
/bin/echo
  −
read DEBUGZPUSH
  −
if [ "$DEBUGZPUSH" == yes ]; then
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/touch /var/www/html/z-push/debug.txt; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chown www:www /var/www/html/z-push/debug.txt; fi
  −
FILE=/var/www/html/z-push/state; if [ -d $FILE ]; then /bin/chmod 755 /var/www/html/z-push/debug.txt; fi
  −
else
  −
rm -f /var/www/html/z-push/debug.txt
  −
fi
  −
 
  −
/bin/echo
  −
/bin/echo "Expanding http.conf-template"
  −
/bin/echo
  −
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
  −
 
  −
/bin/echo
  −
/bin/echo "Restarting httpd"
  −
/bin/echo
  −
/usr/bin/sv restart /service/httpd-e-smith
  −
 
  −
</nowiki>
  −
 
  −
==== To save : ====
  −
CTRL + X
  −
yes
  −
<ENTER>
  −
 
  −
=== See further : "Any version" ===
  −
 
  −
== VERSION 2.0.x ==
  −
=== Download the Z-push-package (version 2.0 !!)===
  −
wget http://zarafa-deutschland.de/z-push-download/final/2.0/[z-push-latest version]
  −
 
  −
Save in an installdirectory, ex. : root/InstallZPush
  −
 
  −
=== Unpack the package for Z-push :===
  −
Go (cd /...) to the installdirectory (if you haven't done this yet) :
  −
 
  −
cd /to the installdirectory
  −
 
  −
And unpack :
  −
 
  −
tar -zxvf z-push-[latest version] -C /usr/share
  −
 
  −
=== Change the name of the created z-push-directory in /usr/share to 'z-push' ===
  −
 
  −
=== INSTALLSCRIPT ===
  −
==== nano -w /etc/e-smith/events/actions/z-push-install ====
  −
<nowiki>
  −
#!/bin/sh
  −
 
  −
#
  −
#--- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ---
  −
#
  −
echo
  −
echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ..."
  −
echo
  −
cat <<HERE1 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases
  −
{
  −
    # vim: ft=perl:
  −
 
  −
    \$haveSSL = (exists \${modSSL}{status} and \${modSSL}{status} eq "enabled") ?  'yes' : 'no';
  −
    my \$zwebmailStatus = \$zarafa{'status'} || "disabled";
  −
    my \$zwebmailAccessType = \$zarafa{'access'} || "SSL";
  −
 
  −
    my \$dirs;
  −
    \$dirs{zarafa} = '/usr/share/zarafa-webaccess';
  −
    \$dirs{webaccess} = '/usr/share/zarafa-webaccess';
  −
    \$dirs{webmail} = '/usr/share/zarafa-webaccess';
  −
    if (\$imp{'status'} eq 'enabled') {\$dirs{webmail} = ''};
  −
    \$dirs{webapp} = '/usr/share/zarafa-webapp';
  −
    \$dirs{'Microsoft-Server-ActiveSync'} = '/usr/share/z-push/index.php';
  −
 
  −
    return "    # Zarafa is disabled in this VirtualHost\n"
  −
                unless \$zwebmailStatus eq 'enabled';
  −
 
  −
    foreach \$place ('zarafa','webmail','webaccess','webapp','Microsoft-Server-ActiveSync')
  −
    {
  −
        if ((\$port eq "80") && (\$haveSSL eq 'yes') && (\$zwebmailAccessType eq 'SSL'))
  −
        {
  −
            \$OUT .= "    RewriteRule ^/\$place(/.*|\\$)    https://%{HTTP_HOST}/\$place\\\$1 [L,R]\n";
  −
        } else {
  −
            if ((\$dirs{\$place}) ne '') {\$OUT .= "    Alias /\$place  \$dirs{\$place}\n"};
  −
        }
  −
    }
  −
}
  −
HERE1
  −
 
  −
#
  −
#--- /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ---
  −
#
  −
echo
  −
echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ..."
  −
echo
  −
cat <<HERE2 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias
  −
{
  −
    my \$zstatus = \$zarafa{'status'};
  −
 
  −
    if (defined \$zstatus && \$zstatus eq 'enabled')
  −
    {
  −
        \$OUT .= qq(
  −
#--------------------------------------------------------------------
  −
# Zarafa specific configuration files.
  −
#--------------------------------------------------------------------
  −
 
  −
Alias /zarafa /usr/share/zarafa-webaccess/
  −
<Directory /usr/share/zarafa-webaccess/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php
  −
  php_flag magic_quotes_gpc off
  −
  php_flag track_vars on
  −
</Directory>
  −
 
  −
Alias /webapp /usr/share/zarafa-webapp/
  −
<Directory /usr/share/zarafa-webapp/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php
  −
  php_flag magic_quotes_gpc off
  −
  php_flag track_vars on
  −
</Directory>
  −
 
  −
<Directory /usr/share/z-push/>
  −
  Options -Indexes
  −
  AllowOverride All
  −
  order allow,deny
  −
  allow from all
  −
  AddType application/x-httpd-php .php .php3
  −
  php_flag magic_quotes_gpc off
  −
  php_flag register_globals off
  −
  php_flag magic_quotes_runtime off
  −
  php_flag short_open_tag on
  −
</Directory>
  −
 
  −
);
  −
    }   
  −
    else
  −
    {
  −
      \$OUT .= "# Zarafa Webmail is not configured as it is disabled in the config db";
  −
    }
  −
}
  −
HERE2
  −
 
  −
######################################
  −
# Configuration of Z-push
  −
######################################
  −
 
  −
/bin/echo
  −
/bin/echo "Configuration of Z-push"
  −
/bin/echo
  −
mkdir -p /var/lib/z-push
  −
mkdir -p /var/log/z-push
  −
FILE=/var/lib/z-push; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/lib/z-push; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
FILE=/var/log/z-push; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/log/z-push; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
 
  −
/bin/echo
  −
/bin/echo "Expanding http.conf-template"
  −
/bin/echo
   
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
 
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
   −
/bin/echo
   
/bin/echo "Restarting httpd"
 
/bin/echo "Restarting httpd"
/bin/echo
   
/usr/bin/sv restart /service/httpd-e-smith
 
/usr/bin/sv restart /service/httpd-e-smith
    +
/bin/echo "Starting Zarafa-services"
 +
/etc/e-smith/events/actions/zarafa-services start
 
</nowiki>
 
</nowiki>
   −
==== To save : ====
+
===== To save : =====
CTRL + X
  −
yes
  −
<ENTER>
  −
 
  −
=== UPGRADESCRIPT ===
  −
==== nano -w /etc/e-smith/events/actions/z-push-update ====
   
  <nowiki>
 
  <nowiki>
#!/bin/sh
  −
  −
######################################
  −
# Configuration of Z-push
  −
######################################
     −
/bin/echo
  −
/bin/echo "Configuration of Z-push"
  −
/bin/echo
  −
mkdir -p /var/lib/z-push
  −
mkdir -p /var/log/z-push
  −
FILE=/var/lib/z-push; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/lib/z-push; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
FILE=/var/log/z-push; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi
  −
FILE=/var/log/z-push; if [ -d $FILE ]; then /bin/chmod 755 $FILE; fi
  −
  −
/bin/echo
  −
/bin/echo "Expanding http.conf-template"
  −
/bin/echo
  −
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
  −
  −
/bin/echo
  −
/bin/echo "Restarting httpd"
  −
/bin/echo
  −
/usr/bin/sv restart /service/httpd-e-smith
  −
  −
</nowiki>
  −
  −
==== To save : ====
   
  CTRL + X
 
  CTRL + X
 
  yes
 
  yes
 
  <ENTER>
 
  <ENTER>
 +
</nowiki>
   −
=== See further : "Any version" ===
+
===== Execute zarafa-update-to71 =====
 
  −
== ANY VERSION (1.5.x or 2.0.x)==
  −
=== Edit the config.php file in the Z-Push directory to fit your needs. ===
  −
ex. Set your timezone in the config.php file.
  −
 
  −
=== Execute z-push-install (see script above !!!!) ===
     −
  /bin/chmod 554 /etc/e-smith/events/actions/z-push-install
+
  /bin/chmod 554 /etc/e-smith/events/actions/zarafa-update-to71
    
  cd /etc/e-smith/events/actions/
 
  cd /etc/e-smith/events/actions/
   −
  ./z-push-install
+
  ./zarafa-update-to71
   −
= UPGRADING of Z-push =
+
  signal-event post-upgrade; signal-event reboot
== VERSION 1.5 (1.5.x -> 1.5.x)==
  −
=== Download the Z-push-package (version 1.5 !!)===
  −
 
  −
wget http://zarafa-deutschland.de/z-push-download/final/1.5/[z-push-latest version]
  −
 
  −
Save in an installdirectory, ex. : root/InstallZPush
  −
 
  −
=== Unpack the corresponding package for ZCP and the package for Z-push :===
  −
 
  −
Go (cd /...) to the installdirectory (if you haven't done this yet) :
  −
 
  −
cd /to the installdirectory
  −
 
  −
And unpack :
  −
 
  −
tar -zxvf z-push-[latest version] -C /var/www/html
  −
 
  −
=== Change the name of the created z-push-directory in /var/www/html to 'z-push'===
  −
=== See further : "Any version" ===
  −
== VERSION 2.0 (2.0.x -> 2.0.x)==
  −
=== Download the Z-push-package (version 2.0 !!)===
  −
 
  −
wget http://zarafa-deutschland.de/z-push-download/final/2.0/[z-push-latest version]
  −
 
  −
Save in an installdirectory, ex. : root/InstallZPush
  −
 
  −
 
  −
=== Unpack the package for Z-push :===
  −
 
  −
Go (cd /...) to the installdirectory (if you haven't done this yet) :
  −
 
  −
  cd /to the installdirectory
  −
 
  −
And unpack :
  −
 
  −
tar -zxvf z-push-[latest version] -C /usr/share
  −
 
  −
=== Change the name of the created z-push-directory in /usr/share to 'z-push'===
  −
=== See further : "Any version" ===
  −
== VERSION 1.5.x -> 2.0.x ==
  −
 
  −
The easiest way to upgrade is to follow the steps for a new installation of version 2.0. The states of Z-Push 1.X are not compatible and there is no upgrade path, but as this version implements a fully automatic resynchronisation of devices it should not affect the users and work without the user interaction
  −
 
  −
== ANY VERSION ==
  −
=== Edit the config.php file in the Z-Push directory to fit your needs. ===
  −
ex. Set your timezone in the config.php file.
  −
 
  −
=== Execute z-push-update (see script above !!!!) ===
  −
 
  −
/bin/chmod 554 /etc/e-smith/events/actions/z-push-update
  −
 
  −
cd /etc/e-smith/events/actions/
  −
 
  −
./z-push-update
 
167

edits

Navigation menu