Line 1: |
Line 1: |
| The below script will install the latest Zarafa 7.0, including dependencies and custom templates as per http://wiki.contribs.org/Zarafa_on_SME8. Please be aware that you read the how-to carefully to fully understand what the below script will install, remove or modify!!. The script will asume it runs on a fresh and updated SME8 setup connected to the internet. The main reason for this script is to reduce the installation time required of installing Zarafa 7.0 on SME8. | | The below script will install the latest Zarafa 7.0, including dependencies and custom templates as per http://wiki.contribs.org/Zarafa_on_SME8. Please be aware that you read the how-to carefully to fully understand what the below script will install, remove or modify!!. The script will asume it runs on a fresh and updated SME8 setup connected to the internet. The main reason for this script is to reduce the installation time required of installing Zarafa 7.0 on SME8. |
| + | {{Note box|<br> |
| + | * This script will only work with the Zarafa 7.0 series, it will fail on the 7.1 series due to changes in Zarafa 7.1 config files |
| + | * 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. |
| + | * Adjusted script to auto detect architecture and SME Version.}} |
| | | |
| What we actually need is a member that has RPM skills to create and maintain a SME8-Zarafa7 rpm. Interested anyone? | | What we actually need is a member that has RPM skills to create and maintain a SME8-Zarafa7 rpm. Interested anyone? |
Line 6: |
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 17: |
Line 22: |
| | | |
| | | |
− | install-zarafa7.sh | + | ===install-zarafa7.0.sh=== |
| + | (credits forum user frifri) |
| + | |
| <syntaxhighlight lang="Bash"> | | <syntaxhighlight lang="Bash"> |
− | #
| + | #!/bin/sh |
| + | # |
| + | # Zarafa on SME8 |
| + | # |
| + | |
| + | zarafainstall () |
| + | { |
| + | 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/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-indexer 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-indexer 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-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 |
| + | |
| </syntaxhighlight> | | </syntaxhighlight> |