Line 4: |
Line 4: |
| * The server must have internet access when te script is executed. | | * The server must have internet access when te script is executed. |
| * This is not a 'point and click' installation. A thorough understanding of Zarafa, SME Server and DB entries is required. Please study [[Zarafa_on_SME8|this]] page carefully. | | * This is not a 'point and click' installation. A thorough understanding of Zarafa, SME Server and DB entries is required. Please study [[Zarafa_on_SME8|this]] page carefully. |
− | * This script is '''intended for 64-bit architecture'''. For SME-32-bit adapt the script at the end, where it needs to download the 32-bit zcp-package (zcp-7.0.14-42060-rhel-5-i386-free.tar.gz) and be executed in the 32-bit-directory (zcp-7.0.14-42060-rhel-5-i386). Just change the x86_64-references to i386-references at the end of the script.
| |
| * Adjusted script to auto detect architecture and SME Version.}} | | * Adjusted script to auto detect architecture and SME Version.}} |
| | | |
Line 12: |
Line 11: |
| 1. Log in as root and create an installation directory and move to that directory | | 1. Log in as root and create an installation directory and move to that directory |
| | | |
− | 2. Copy the below script and paste it into the installation directory as install-zarafa7.sh | + | 2. Copy the below script and paste it into the installation directory as install-zarafa7.0.sh |
| | | |
− | 3. Make install-zarafa.sh executable (chmod 755 install-zarafa7.sh) | + | 3. Make install-zarafa7.0.sh executable (chmod 755 install-zarafa7.0.sh) |
| | | |
− | 4. Execute the script (./install-zarafa7.sh) | + | 4. Execute the script (./install-zarafa7.0.sh) |
| | | |
| The script will take care of all downloads, templates and custom templates (as per the how-to) and will leave you at the point where you have to select language (UTF) and zarafa mechanism db or unix. | | The script will take care of all downloads, templates and custom templates (as per the how-to) and will leave you at the point where you have to select language (UTF) and zarafa mechanism db or unix. |
Line 23: |
Line 22: |
| | | |
| | | |
− | ===install-zarafa7.sh=== | + | ===install-zarafa7.0.sh=== |
| (credits forum user frifri) | | (credits forum user frifri) |
| | | |
Line 1,023: |
Line 1,022: |
| echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ..." | | echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases ..." |
| echo | | echo |
− | cat <<HERE1 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases | + | cat <<HERE14 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases |
| { | | { |
| # vim: ft=perl: | | # vim: ft=perl: |
Line 1,052: |
Line 1,051: |
| } | | } |
| } | | } |
− | HERE1
| + | HERE14 |
| | | |
| # | | # |
Line 1,060: |
Line 1,059: |
| echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ..." | | echo "Creating /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias ..." |
| echo | | echo |
− | cat <<HERE2 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias | + | cat <<HERE15 > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias |
| { | | { |
| my \$zstatus = \$zarafa{'status'}; | | my \$zstatus = \$zarafa{'status'}; |
Line 1,112: |
Line 1,111: |
| } | | } |
| } | | } |
− | HERE2
| + | HERE15 |
| | | |
| ###################################### | | ###################################### |
Line 1,217: |
Line 1,216: |
| signal-event yum-modify | | signal-event yum-modify |
| } | | } |
− |
| |
| | | |
| clear | | clear |
| # Start of the actual script | | # Start of the actual script |
| # Setting Zarafa and Z-Push Version numbers, detect SME Server major version and architecture and set install directory | | # Setting Zarafa and Z-Push Version numbers, detect SME Server major version and architecture and set install directory |
− | ZVERSION=7.0.15-42709 | + | ZVERSION=7.0.13-41388 |
| PUSHVERSION=2.1.1-1788 | | PUSHVERSION=2.1.1-1788 |
| INSTALLDIR=/root/install/zarafa | | INSTALLDIR=/root/install/zarafa |
− | if [ `$(cat /etc/redhat-release|grep -o 8` = "8"); then | + | TEMPLATEDIR=/etc/e-smith/templates/etc/zarafa/ |
| + | ################################################################################### |
| + | # Init zarafa-array to simplify code and reduce possible (future) mistakes |
| + | # http://tldp.org/LDP/abs/html/arrays.html |
| + | # Not used yet, please ignore for this note is just a placeholder |
| + | # zarafa-array=( unix licensed dagent gateway ical monitor spooler indexer server ) |
| + | # So zarafa-array ranges from 0 to 8 |
| + | ################################################################################### |
| + | if [ $(cat /etc/redhat-release | grep -o 8) = "8" ]; then |
| RHV=5 | | RHV=5 |
| else | | else |
| RHV=6 | | RHV=6 |
| + | # zarafa-array[7]=search # as per comment above, not used yet |
| fi | | fi |
| if [ `getconf LONG_BIT` = "64" ]; then | | if [ `getconf LONG_BIT` = "64" ]; then |
Line 1,241: |
Line 1,248: |
| tar -zxvf $INSTALLDIR/z-push-$PUSHVERSION.tar.gz -C /usr/share | | tar -zxvf $INSTALLDIR/z-push-$PUSHVERSION.tar.gz -C /usr/share |
| mv /usr/share/z-push-$PUSHVERSION /usr/share/z-push | | mv /usr/share/z-push-$PUSHVERSION /usr/share/z-push |
− | tar -zxvf zcp-$ZVERSION-rhel-$CPUARCH-free.tar.gz | + | tar -zxvf zcp-$ZVERSION-rhel-$RHV-$CPUARCH-free.tar.gz |
| cd zcp-$ZVERSION-rhel-$RHV-$CPUARCH | | cd zcp-$ZVERSION-rhel-$RHV-$CPUARCH |
| rm -f *-dev*.rpm | | rm -f *-dev*.rpm |