Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2007, 11:41 AM
Special Member
 
Posts: 150
Default Upgrading from 4.5.3 to 4.5.6

1st - is this the right forum for upgrade assistance? Should the forum be renamed Installation/Upgrade

2nd - last time I migrated from 4.5.0 to 4.5.3 I had to redo a lot of work, and or get files from backup. Does the process work smoother yet?

In particular I have a few things that I'm worried about:

1) I have port 587 for smtp submission running, will I need to reconfigure this again?
2) I have multiple skins, will I need to back these up and restore them?
3) I have changed many lines in the .properties files in various places.
4) What else am I forgetting?

So does anyone else have these similar things? Does anyone have a quick script that they use to back these things up and restore them?

What about new additions to the properties files, do I need to do a compare on them?

Thanks!

-Bryan
Reply With Quote
  #2 (permalink)  
Old 06-29-2007, 11:51 AM
Moderator
 
Posts: 6,236
Default

1) shouldn't have to reconfigure the port it should backup the config file
2) yes back those up-your tomcat/zimbra folder will be entirely overwritten-but you don't want to restore the whole folder later, just the skins
3) .properties where?
4) a full backup of /opt/zimbra and any linked folders...for safety and just incase you need to look up something else later
Reply With Quote
  #3 (permalink)  
Old 06-29-2007, 12:04 PM
Senior Member
 
Posts: 61
Post post upgrade

I keep a script in CVS that I pull out and run after an upgrade. I haven't used it lately and will be doing an upgrade soon, so I'll find out if it needs tweaking. Anyway, it looks like this:

Code:
#!/bin/bash
################################################################################
# $Id: postupgrade.sh,v 1.2 2007/06/29 16:51:23 dlbewley Exp $
#-------------------------------------------------------------------------------
# Run me as Zimbra after doing a Zimbra upgrade to replace local customizations.
################################################################################

SKIN_DIR=/opt/zimbra/tomcat/webapps/zimbra/skins/_base
CUSTOM_LOGO_SOURCE_URL=http://testbot/img/zimbra
LOGO_URL=http://www
ZIMLET_DIR=/opt/zimbra/zimlets-extra
ZIMBRA_USER=zimbra

if [ "`whoami`" != "$ZIMBRA_USER" ]; then
    echo "Please run as user $ZIMBRA_USER"
    exit 1
fi

# The default _base skin reverts on upgrade
echo "Replacing Logos"
for file in AppBanner.png LoginBanner.png; do
    wget -q -O $SKIN_DIR/logos/$file $CUSTOM_LOGO_SOURCE_URL/$file
done
echo "Replacing Logo URL"
cd $SKIN_DIR/base
cat < skin.patch
42a43
>       LogoURL                 = $LOGO_URL
EOF
patch base_subs.txt < skin.patch

# Zimlets become unavailable on upgrade
echo "Redeploying Zimlets"
cd $ZIMLET_DIR
for zimlet in *.zip; do
    zmzimletctl deploy $zimlet;
done

# Enforce redir to HTTPS
echo "Forcing HTTPS access only"
echo "see http://bugzilla.zimbra.com/show_bug.cgi?id=7631"
zmtlsctl mixed
cd /opt/zimbra/tomcat/webapps/zimbra/public/
cat < https.patch
100,101d99
<                       qs = emptyQs? "?initMode=" + currentProto: qs + "&initMode=" +
<                       currentProto;
EOF
patch Login.jsp < https.patch

# Apply local spamassassin customizations
echo "Apply local spamassassin customizations"
cd /opt/zimbra/conf
cat < spamassassin.patch
21,29d20
< # Begin Local Changes #
< header CAMPUS_FLAGGED_AS_SPAM X-UCD-Spam-Score =~ /^.*\(\*\*\*\*\*/
< describe CAMPUS_FLAGGED_AS_SPAM Campus claims it is spam over 5
< score CAMPUS_FLAGGED_AS_SPAM 5.0
<
< whitelist_from know@good.email
< # End Local Changes #
<
EOF
cp -p salocal.cf.in salocal.cf.in.dist
patch salocal.cf.in < spamassassin.patch

echo "I believe zimbra/tomcat/conf/keystore may need fixing."
echo "Also zimbra/conf/smtpd.crt and smtpd.key may need fixing."
echo "See migration/provision/README for info on SSL certs."
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.