PDA

View Full Version : Squirrelmail 1.4.3a update script


jmstacey
07-17-2004, 02:08 AM
For those ready to upgrade squirrelmail I wrote a little script for you!

wget http://www.saevian.com/da_tools/update.squirrelmail.sh
chmod 755
./update.squirrelmail.sh



It does not make backups so make sure you do!
It will copy over user data, themes, and plugins. Please note that depending on what version your upgrading or downgrading to that not everything might be compatible ;)

Tested on FreeBSD 4.10

tribal-dolphin
07-18-2004, 02:35 AM
Hello,

You can have an error with RH9. This script use fetch for downloading the file.
Edit the file and replace fetch by wget and it's good.

Bye.

jmstacey
07-18-2004, 11:56 PM
Updated with wget.

jmstacey
08-11-2004, 12:44 AM
Download location has been changed. New Name

wget http://www.saevian.com/da_tools/update.squirrelmail.sh
chmod 755
./update.squirrelmail.sh

jmstacey
08-19-2004, 06:21 PM
Updated to v1.1

I fixed a small oversight that I made where you had to be in the /var/www/html directory to get the update script to update properly. This oversight has been taken care of and you can now execute it anywhere.

sim
08-23-2004, 05:53 AM
many thanks for this great script - saved a lot of hassle :cool:

cheers!

sim

Chrysalis
08-28-2004, 06:45 PM
which dir(s) do I need to backup before running this script?

thanks

jmstacey
08-29-2004, 12:47 AM
/var/www/html/squirrelmail-version
where version is your old version.

Chrysalis
09-15-2004, 08:57 AM
I ran it on my test directadmin server, which is unmodified freebsd 4.9 and it gave no errors. But when I tried the webmail link it doesnt load it just waits with a blank screen for about 3 mins then gives a "page cannot be displayed" error

----edit----

ignore above its an apache problem

rhoekman
09-21-2004, 02:43 PM
Great script thanks! Works on FreeBSD 5.2.1 without any problems..

davew
09-21-2004, 05:05 PM
Another flawless upgrade on FreeBSD 5.2.1 here.
Thanks jmstacey :)

dec
10-20-2004, 11:53 PM
Is this suppose to work only for FreeBSD?

What about the squirrelmail.sh scritp that is in the folder with the same name?

Thanks

jmstacey
10-21-2004, 12:17 AM
Originally posted by dec
Is this suppose to work only for FreeBSD?

What about the squirrelmail.sh scritp that is in the folder with the same name?

Thanks

It should work on any operating system that loads squirrelmail from the /var/www/html directory (all do I believe)
I have only tested it on FreeBSD though.

The squirrelmail.sh would technically work I guess if you modified the version it was supposed to install at the top of the file. But it does not transfer the user data to the new version.

dec
10-21-2004, 12:21 AM
Originally posted by jmstacey
It should work on any operating system that loads squirrelmail from the /var/www/html directory (all do I believe)
I have only tested it on FreeBSD though.

The squirrelmail.sh would technically work I guess if you modified the version it was supposed to install at the top of the file. But it does not transfer the user data to the new version.

Yeah.. it worked fine on Fedora Core 1!

Thanks..!

werwin01
11-18-2004, 01:00 PM
Resolving www.saevian.com... failed: Host not found.

jmstacey
11-18-2004, 06:41 PM
The link is: http://www.saevian.com/da_tools/update.squirrelmail.sh

and is working for me....

MagnuM
11-20-2004, 05:01 PM
Hello,

I do have SquirrelMail version 1.4.2, and I running Fedora Core 1. Do you think the upgrade will work for me?

jmstacey
11-20-2004, 10:22 PM
I believe it should, but I haven't tested it.

alex2k
12-03-2004, 02:56 AM
It's work on Centos 3.3
Thank's for this....

spirit
12-03-2004, 04:41 AM
Hi there,

I do have SquirrelMail version 1.4.2, and I running Fedora core 2. Do you think the upgrade will work for me and is it necessary to upgrade to this version?

THNX

//EDIT: im not using RH3 but Fedora Core 2 :)

The upgrade works!

alex2k
12-03-2004, 05:20 AM
Originally posted by spirit
Hi there,

I do have SquirrelMail version 1.4.2, and I running Redhat 3. Do you think the upgrade will work for me and is it necessary to upgrade to this version?

THNX

It's ok for me.
I update from SquirrelMail version 1.4.2 to SquirrelMail version 1.4.3a without any problem.

dannygoh
12-03-2004, 05:29 AM
upgraded successful. thanks for the script.

werwin01
01-14-2005, 02:23 PM
Update works fine on FreeBSD 5.3

jmstacey
01-24-2005, 11:06 PM
Updated tool to fix small bug for Operating Systems which do not have a group wheel.
Script now chowns directory root:root

Tested and working on Debian 3.0
:)

Chrysalis
01-25-2005, 06:37 PM
the root:root breaks freebsd systems since there is no root group.

chown: root: Invalid argument

perhaps you need some sort of checker so it knows what os it is running on.

jmstacey
01-25-2005, 10:59 PM
Added and updated.
It now uses root:wheel for FreeBSD and root:root for any other Operating Systems.
I haven't tested it though ;)

Does anybody know if RedHat, centos etc. have the same or other specific issues?

hostpc.com
01-26-2005, 08:17 AM
ran fine on RH9 and FC2

Dennis
01-29-2005, 02:36 AM
Works on FC2 ran fine! no problemo's....

TNX for the script jmstacy!

Dennis

XerionHosting
02-10-2005, 05:49 AM
Well iam new to this and done the upgrade but now i get:


Forbidden
You don't have permission to access /squirrelmail on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.0 mod_ssl/2.0.52 OpenSSL/0.9.7a PHP/4.3.10 FrontPage/5.0.2.2634 Server at xerionhosting.nl Port 443


What should i do now ?

thx

jmstacey
02-10-2005, 09:29 AM
Make sure that the squirrelmail link in /var/www/html is actually pointed to the new version of squirrelmail and actually works. Also make sure that the squirrelmail directory and link are set with the correct permissions.

If needed, you can remove all remnants of squirrelmail from /var/www/html and rerun the DirectAdmin installation from /usr/local/directadmin/scripts/squirrelmail.sh which will install the original version of squirrelmail that came with DirectAdmin. Then try rerunning the update script.

webspacenl
02-10-2005, 03:04 PM
I think I am a Egg

but why do I get this on?

chmod 755
chmod: too few arguments

???????

PEEr

vandal
02-10-2005, 03:34 PM
chmod 755 directory name here

you need to supply the directory name.

Icheb
02-11-2005, 02:24 AM
Update works good, am 'mass issuing' it to all servers now, with a minor modification (to send back logs to my daemon interface and work without asking stuff).

XerionHosting
02-11-2005, 02:41 AM
SquirrelMail version 1.4.4-rc1

Got it working don't realy now what i've done but it works

CrazyLane
02-28-2005, 04:45 PM
Upgraded to php5 and broke sqrlmail! Thanks you for the script!

Icheb
03-04-2005, 02:12 AM
I stated above I have mass issued it to all our servers, well, I will never ever do that again with this script.
The local language files are NO LONGER in the package, they have to be seperately installed, otherwise it won't matter what you set, it will be an English only interface.
As 99% of my users prefer to have it in Dutch, I have received a number of complaints about it.
Later on I issued a set of bash commands to let it download and unzip (thought it was unzip) the files into the right directory.

jmstacey
03-04-2005, 09:53 PM
This is a new development as of 1.4.4 according to the Release Notes and I have added the locale directory to be copied to the new installation.

Please Note the new download location:
http://www.saevian.com/da_tools/upgrade.squirrelmail.sh

Change Log 3-4-05 10:00pm MST
- Copy locale directory to new version
- Warn/Ask if you really want to just copy old data to the new version or start from scratch (recommended)
- Ask if you would like to initiate conf.pl to make sure that your old settings are compatible with the new version or if you need to configure a new installation
- Check that the file was downloaded before proceeding

manny2008
01-07-2006, 02:14 AM
How and where to make backups of the Squirrelmail user data?

jmstacey
01-07-2006, 06:24 PM
The script just doesn't delete the old Squirrelmail installation in /var/www/html, so you should find it there.

jmstacey
01-08-2006, 12:26 AM
Just an update. The script can now be downloaded from our new download area for DirectAdmin. Here is a link to the Squirrelmail Upgrade script:
http://www.mark87.com/download.php?view.3

A FREE DirectAdmin plugin is available that provides the same functionality as this script with a web accessible interface. Click here (http://www.mark87.com/page.php?8)for more information.

@how@
01-08-2006, 12:32 AM
domain expired :(

jmstacey
01-08-2006, 12:37 AM
That's why there's a new download link :)

http://www.mark87.com/download.php?view.3

@how@
01-08-2006, 12:54 AM
Thanks jmstacey
update done with CentOS 4.2

manny2008
01-08-2006, 12:59 AM
Do we need to back-up anything? If yes what files do need to be backed-up?

jmstacey
01-08-2006, 12:12 PM
Nope. The script leaves the old copy of squirrelmail there for backup purposes and just updates the squirrelmail link to the new version.

modem
01-08-2006, 06:28 PM
When I try installing the jtbox utilities plugin that does the same thing that this script does, it says "installer.sh not found. Script not executed." Even though DA lists it as installed, it's not usable or no link shows up to use it.

I downloaded it directly from the website to the server and installed the plugin.

jmstacey
01-08-2006, 06:33 PM
The upgrade utilites module is part of JTbox.
An installation guide can be found here (http://www.mark87.com/e107_plugins/faq/faq.php?0.cat.2.2)

modem
01-08-2006, 06:38 PM
Do I have to purchase "JTBox" in order to get a license key for that? Or is that something free as the squirrelmail update module is?

jmstacey
01-08-2006, 06:53 PM
The JTbox framework is free and only requires registration to get a license.

http://www.mark87.com/page.php?7

Seth
02-04-2006, 08:32 AM
Very nice, thank you