Changes

Jump to navigation Jump to search
1,252 bytes added ,  01:40, 23 April 2014
qmail user template if statement does not handle all situations correctly
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 1,053: Line 1,077:  
  yes
 
  yes
 
  <ENTER>
 
  <ENTER>
      
==== UPGRADESCRIPT ====
 
==== UPGRADESCRIPT ====
Line 1,389: Line 1,412:  
  yes
 
  yes
 
  <ENTER>
 
  <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 : =====
 
===== Only if you are upgrading from zcp 7.0.x to 7.1.x -> nano -w /etc/e-smith/events/actions/zarafa-update-to71 : =====
Line 1,394: Line 1,423:  
#!/usr/bin/env bash
 
#!/usr/bin/env bash
 
clear
 
clear
 +
 +
/bin/echo "Stopping the Zarafa-services"
 +
/etc/e-smith/events/actions/zarafa-services stop
    
if [ `whoami` != "root" ]; then
 
if [ `whoami` != "root" ]; then
167

edits

Navigation menu