View Single Post
  #16 (permalink)  
Old 03-05-2008, 03:20 PM
smurraysb smurraysb is offline
Intermediate Member
 
Posts: 18
Default

It's Zimbra 4.5.10, and SLES 10.

I'm rug installing MySQL prior to installation, could that be it?

if it helps, here is a sh file I run right before installing the Zimbra (Mind, you, I'm doing all this on a VM right now, so I'm not running this script over and over, just when going back in snapshots)

Code:
#!/bin/sh

#################################################
# The variable @MYIP@ will represent my IP addr #
#################################################

echo "Turning off firewall"

/etc/init.d/SuSEfirewall2_init stop
/etc/init.d/SuSEfirewall2_final stop
/etc/init.d/SuSEfirewall2_setup stop
SuSEfirewall2 stop

echo "Stopping POSTFIX..."

/etc/init.d/postfix stop

echo "Starting base installs..."

rug install --no-confirm gmp bind-devel apache2 mysql php4 java2

rug install --no-confirm apache2-mod_php4 php4-session php4-cURL php4-gmp java2-jre

echo "Starting Services..."

/etc/init.d/mysql start
/etc/init.d/apache2 start

echo "RPM'ing Cache Nameserver..."

rpm -Uvh ~/Desktop/ZimbraComponent/caching-nameserver-7.1-3.noarch.rpm  --force

echo "Editing /etc/hosts file..."

sed -i 's/^127.0.0.1\s*\t*localhost/&\.localdomain\tlocalhost/g' /etc/hosts

echo "Copying over and editing zone file..."

cp /var/named/localhost.zone /var/named/sbstests.com.zone

################################################## ############
# These following sed's change the zone file to look just as #
# described in the Zimbra & BIND tut. #
################################################## ############

sed -i 's/\$ORIGIN localhost.//g' /var/named/sbstests.com.zone
sed -i 's/1D IN/IN/g' /var/named/sbstests.com.zone
sed -i 's/root/sbstests\.com\. mail\.sbstests\.com\./g' /var/named/sbstests.com.zone
sed -i 's/^\(\t\+\)IN NS\(\t\+\)@/@\1IN NS\t\tmail\.sbstests\.com\.\n\1IN MX\t10\tmail\.sbstests\.com\./g' /var/named/sbstests.com.zone
sed -i 's/^\(\t\+IN\sA\t\+\).*$/\1@MYIP@\nmail\1@MYIP@\nwww\1@MYIP@/g' /var/named/sbstests.com.zone

chown named:named /var/named/sbstests.com.zone

echo "Setting Nameserver..."

sed -i 's/^nameserver .*$/nameserver @MYIP@/g' /etc/resolv.conf

hostname mail.sbstests.com

/etc/init.d/named reload

echo "Unpacking the Zimbra Files..."

tar -xzf ~/Desktop/ZimbraComponent/zcs-4.5.10_GA_1575.SuSEES9.tgz

chmod +777 ~/Desktop/ZimbraComponent/zcs/install.sh

exit 0
Reply With Quote