Preventing CPanel Updating Squirrelmail

ukstu

Member
Dec 19, 2004
9
0
151
As the title says, is there a method that would allow me to disable the cpanel updating of squirrelmail.
Installed lots of templates for squirrelmail yesterday, after lastnights update they are gone :(
 

ukstu

Member
Dec 19, 2004
9
0
151
Hi,
Sorry I'm still a little lost on this, I have read the suggested README but am still confused as to what I need to do to prevent CPanel updating SquirrelMail.

Reading that README it looks like CPanel wipes out squirrelmail every night and reinstalls deleting any modifications - I don't really understand this.

Any help would be appreciated.
Thanks.


Squirrelmail Customizations:

The following modifications will allow an end user to circumvent cPanel's normal Squirrelmail installation
procedure and/or add additional files and modifications to the Squirrelmail sources.

The update-squirrelmail script will check for the existence of /var/cpanel/squirrelmail/squirrelmail-local.tar.gz.
If this archive exists, then it will be used in lieu of cPanel's provided Squirrelmail sources.

The update-squirrelmail script will check for the existence of /var/cpanel/squirrelmail/overlay.tar.gz. If
detected, the tarball will be extracted into /usr/local/cpanel/base/3rdparty. This hook allows and end
user to include an archive of local modifications and additions to include in the Squirrelmail installation.

If the file /var/cpanel/squirrelmail/install exists and is executable, then the script will be executed and
update-squirrelmail will exit immediately. This execution will bypass cPanel's manipulation of the
configuration files. If the file exists and is not executable, then the file will be printed to STDOUT.
The normal cPanel configuration file manipulation will immediately follow.
 

Servax

Member
Feb 23, 2005
18
0
151
This is a old topic, but I figure I'd complete it:

To prevent squirrelmail from updating itself,

touch /var/cpanel/squirrelmail/install
chmod 0777 touch /var/cpanel/squirrelmail/install
chattr +i /var/cpanel/squirrelmail/install
This will make it so the cPanel webmail update script thinks we did a local install, which will cause it to not update it.

[email protected][~]# /usr/local/cpanel/bin/update-squirrelmail
Updating Squirrelmail 1.4.9a
patching file src/read_body.php
Done (local install)
 
Last edited:

betoranaldi

Well-Known Member
Dec 5, 2007
105
0
66
Sorry to dig up this old thread but when i do the following as indicated above I get permission denied errors.

[[email protected] ~]# touch /var/cpanel/squirrelmail/install
touch: cannot touch `/var/cpanel/squirrelmail/install': Permission denied
[[email protected] ~]# chmod 0777 touch /var/cpanel/squirrelmail/install
chmod: cannot access `touch': No such file or directory
chmod: changing permissions of `/var/cpanel/squirrelmail/install': Operation not permitted


How can I fix this?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Sorry to dig up this old thread but when i do the following as indicated above I get permission denied errors.

[[email protected] ~]# touch /var/cpanel/squirrelmail/install
touch: cannot touch `/var/cpanel/squirrelmail/install': Permission denied
[[email protected] ~]# chmod 0777 touch /var/cpanel/squirrelmail/install
chmod: cannot access `touch': No such file or directory
chmod: changing permissions of `/var/cpanel/squirrelmail/install': Operation not permitted


How can I fix this?
That looks like you have other problems. Perhaps the /var partition is mounted read-only?
 

betoranaldi

Well-Known Member
Dec 5, 2007
105
0
66
It turns out the file install had attribute set as 'i'.

======================================
[[email protected] squirrelmail]# lsattr
----i-------- ./install
[[email protected] squirrelmail]# chattr -i install
[[email protected] squirrelmail]# lsattr
------------- ./install
[[email protected] squirrelmail]# touch install
[[email protected] squirrelmail]#
======================================

A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

I must have done this previously without realizing it.
 

GoHard

Member
Jan 6, 2008
9
0
51
This is a old topic, but I figure I'd complete it:

To prevent squirrelmail from updating itself,



This will make it so the cPanel webmail update script thinks we did a local install, which will cause it to not update it.
Hi guys,

This is not related to squirrel mail but it is related to locking the files as
mentioned in this post...

I have done some updates to EXIM under the exim.conf file and every other
day or so I have to keep adding the file back because when cpanel updates
it wipes out all of the changes.

So is there a way to make it so cpanel will not update exim.conf and leave
the preconfiged settings when it updates?

Thanks,
Joe