Page 1 of 1

Automatic Upgrade?

Posted: Wed Jun 03, 2009 2:13 pm
by ellaissad
Is there a module or plugin I can use so that automatic upgrade CMSMS is possible?

thank you so much!! I love CMSMS, its probably the easiest and best CMS I've used so far!!
Ella

Re: Automatic Upgrade?

Posted: Wed Jun 03, 2009 6:06 pm
by Pierre M.
Hello,

The admin panel notifies about available upgrades.
The core upgrade procedure itself is automatic (upgrade.php).
You still have to make backups and uploads by hand. But you can script this.

If the installer gets an included automatic downloader, it would pave somewhat the way for 1-clic upgrade from the admin panel notification.

Pierre M.

Re: Automatic Upgrade?

Posted: Wed Jun 03, 2009 6:22 pm
by jmcgin51
Yes, I think the OP is looking for something like an integrated upgrade from within the admin panel (like Wordpress has).

Re: Automatic Upgrade?

Posted: Wed Aug 05, 2009 4:19 pm
by dhtml12345
I think an automatic upgrade button, akin to WordPress', would simplify a lot of people's lives.  Just take a look at the number of cranky people when CMSMS 1.6 was released: http://blog.cmsmadesimple.org/2009/06/2 ... simple-16/

I'm one of those cranky people.

It could be argued that since having an automatic upgrade option requires write permissions, it is a possible security issue.  But if you turn off write permissions with WordPress and then automatically upgrade, you're simply informed to temporarily activate write permissions.

I would rather adjust write permissions and then upgrade automatically than have to go through the pain of downloading a new version of CMSMS every time a little security issue is fixed and update every site individually that uses it.

Thanks.

Re: Automatic Upgrade?

Posted: Wed Aug 05, 2009 4:54 pm
by Pierre M.
Hello,

I understand it is nice when everything goes well. But sometimes things don't work as expected. Example: your hosting provider may have some security feature that needs to be tuned to let CMSms n+1 work but you don't discover it before you are stuck into it.

Webloging software is much less feature wide than CMSms : see CMSms roles permissions system for example. I think upgrading WP is like applying a fixpack patch to CMSms (ex: 1.6.2->1.6.3) and upgrading CMSms (1.y.z->1.y+1.0) is a more sensitive thing (ex: database schema change...)

So I'm not telling an automated upgrade is impossible but just that it should cover much more than patching : database backup, file system backup, settings backup, (may be heavy) upgrade process, lots of non regression tests and option to revert the whole thing.
And I'm not sure CMSms consultants prefer it this way rather than the already proven track record.

Pierre M.

Re: Automatic Upgrade?

Posted: Mon Aug 17, 2009 3:39 pm
by SimonSchaufi
imho this could also be done in cmsms:
- download zip file from amazon server
- unzip it
- open /install/update.php or so

of course tell the admin to backup everything BEFORE ;)

i think it is almost the same if you do that manually by hand or create a small script for that. update process MUST be done manually of course.

Re: Automatic Upgrade?

Posted: Mon Aug 17, 2009 3:51 pm
by calguy1000
I dunno why this is so complex.

Upgrading CMSMS if you have a decent host with ssh access is simple:

a) cd /tmp
b) wget
c) cd root_dir
d) <do backup via command line, it's two commands)
e) tar zxvf /tmp/cmsms_package.tar.gz
f) browse to yourwebsite/admin
g) perform upgrade procedure if necessary (the admin will tell you)
h) upgrade modules

took me 10 minutes to upgrade a site from 1.5.2 to 1.6.3, including upgrading all of the modules. 
all it takes is a little bit of reading, and a decent host.

It's just my $0.02 but writing automatic installers in there to compensate for a poor choice of host, or a lack of knowledge on the part of the web developer.  Also, automatic upgrade would cause as much grief as it solves, considering the complex setup of module and dependencies, permissions problems and host configurations.