SquirrelMail  
Donations
News
About
Support
Security
Screen shots
Download
Plugins
Documentation
Sponsors
Bounties





Junk Email Filter






Security Notice
Phishing campain
Version 1.4.15
Security Upgrade
Older Newer
Mon, 29 Jan 2007 05:46:14 . . . . squirrelmail.org [See the static documentation]


Changes by last author:

Added:
== Semi Automatic upgrade script ==

This Bash script provides semi-automatic upgrades such as taking care of copying and permissions.

Before starting, read the [upgrade documentation].

<code>

#!/bin/bash

# Assumptions:

# - you made backups :)

# - you unpacked the new SquirrelMail?

# - you don't have a setup very different than mine (such as strange plugins)

# - you read the SquirrelMail? upgrade instructions

BASE="/home/httpd/html/squirrelmail-"

OLD="1.4.5"

NEW="1.4.6"

echo Copy data

cp $BASE$OLD/data/*{abook,pref,sig} $BASE$NEW/data

echo Copy config

cp $BASE$OLD/config/config.php $BASE$NEW/config

echo Permissions

chmod g+rw $BASE$NEW/data/*{pref,abook,pref}

chmod 0755 $BASE$NEW/data

chown -R httpd.httpd $BASE$NEW/data

find $BASE$NEW -name "*php" -exec chmod a+r \{\} \;

find $BASE$NEW -name "*css" -exec chmod a+r \{\} \;

find $BASE$NEW -name "*js" -exec chmod a+r \{\} \;

find $BASE$NEW -name "*mod" -exec chmod a+r \{\} \;

find $BASE$NEW -name "*wav" -exec chmod a+r \{\} \;

find $BASE$NEW -type d -exec chmod a+rx \{\} \;

echo Manual: run ./configure

echo Manual: re-install plugins for updates

echo Manual: themes

</code>

© 1999-2016 by The SquirrelMail Project Team