Results 1 to 3 of 3

Thread: Upgrading from 4.5.3 to 4.5.6

  1. #1
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    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

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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

  3. #3
    Join Date
    Sep 2006
    Location
    Davis, CA
    Posts
    64
    Rep Power
    9

    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."

Similar Threads

  1. Upgrading from 4.0.0 RC1 to 4.5.6 GA
    By richard-hdd in forum Installation
    Replies: 2
    Last Post: 08-08-2007, 08:25 AM
  2. Upgrading from 4.5.3 to 4.5.5
    By mmj1000 in forum Installation
    Replies: 4
    Last Post: 06-04-2007, 11:44 PM
  3. Prob upgrading from 4.5.3 to 4.5.4
    By ganjo in forum Installation
    Replies: 5
    Last Post: 04-18-2007, 10:22 PM
  4. Error when upgrading from 3.1 -> 3.1.1
    By jeg1972 in forum Installation
    Replies: 2
    Last Post: 05-10-2006, 07:10 AM
  5. Replies: 4
    Last Post: 04-26-2006, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •