Spsa upgrade script from 1.4 to 1.5

» 02 September 2010 » In Uncategorized »

With the new release of Spsa some technical issues have arisen. For example about how to upgrade to the version 1.5  without re installing the complete system. Christopher gave me the hint to make a workaround to this problem. A small bash script will upgrade Spsa to the latest version with a minimal interaction.

NOTE: I’d advise to try it on some testing virtual  environment  before doing any update on a production server.

At the point where postfix ask about the configuration, say “No configuration”.

This are the steps to perform the upgrade:

Download and execute the script:

wget http://bailey.st/spsa/updatespsa1.4to1.5.sh

chmod +x updatespsa1.4to1.5.sh

./updatespsa1.4to1.5.sh

Welcome to the Spsa update script

this script will upgrade the Spsa version 1.4 to the 1.5.


Disclaimer
You use this script at your own risk. There are no warranties
or guarantees of functionality or safety implied or stated whatsoever.

Are you sure to continue?

Enter yes or no:

yes

Remove executables:
rails

in addition to the gem? [Yn]

When the update script is over please:

enter your gmail credential

vim /etc/postfix/sasl_passwd

[smtp.gmail.com]:587 you_username@gmail.com:you_password

run the script: /etc/postfix/re-hash.sh

and restart postfix with /etc/init.d/postfix restart

change your email credential in  Snorby > My Settings

To test the mail delivery run :
/var/Snorby/script/runner -e production “Event.run_daily_report”

In case of problems check your syslog with :

tail -f /var/log/syslog

Did you like this? Share it:
Scridb filter

Tags:

Trackback URL

One Comment on "Spsa upgrade script from 1.4 to 1.5"

  1. pbailey
    Chris
    02/09/2010 at 7:39 pm Permalink

    The script worked wonderfully! Thanks!

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Subscribe to Comments