Page 1 of 1

Command Line Upgrade Script

Posted: Thu Jun 22, 2006 5:53 am
by axelseaa
Is there a way to run serendipity upgrades via the command line? I have a multisite install setup, and this would simplify things.

If there isn't currently a command line script, would this theoritically be easy to accomplish?

Posted: Thu Jun 22, 2006 6:38 am
by jhermanns
all the script would have to do is apply the database patches you find in the db folder. they can't be use "raw", but they need to be parsed (to make them mach the respective dbms).

but the functions for that are already there, of course, as php scripts inside the serendipity_functions_installer.inc.php (or some name like that ;))

Posted: Thu Jun 22, 2006 11:00 am
by garvinhicking
Hi!

An example script for that is in the bundled-libs directory of s9y. It got unmaintained, so if anyone here wants to polish it up, have a go.

Since multisites are usually already very customized, we can't provide a generic tool for that. And for single-site installers a shell script is pretty unneccessary because the web-based upgrader is so cool. ;)

Best regards,
Garvin

Posted: Fri Aug 25, 2006 10:49 pm
by munk
Hi Garvin,
garvinhicking wrote: An example script for that is in the bundled-libs directory of s9y. It got unmaintained, so if anyone here wants to polish it up, have a go.
I wrote the docs/upgrade.sh script originally and didn't realize it was now out of date, my fault for not keeping in the loop I suppose. I just stumbled across the script in the docs folder just now after upgrading and read the 'not working' message in it!

Is it worth fixing this script? I don't personally use it any more since I'm using the FreeBSD portupgrade system to keep an eye on upgrades now, but if you want it fixing I don't mind.

I also don't mind if you want to nuke it given there are now plugins(?) available to backup s9y prior to upgrade and that the upgrade wizard is now shiny enough anyway :)

Your choice.

Great work on s9y since 0.8 when I probably last spoke to you! Looks fantastic in 1.x, dogs dangly bits :)

Cheers,

Jez

EDIT:
PS any idea how you can search for 'upgrade.sh' on this forum?!

Posted: Fri Aug 25, 2006 10:51 pm
by garvinhicking
Hi!

Thanks a lot, glad to hear that! :)

I'm not sure about fixing it up...I must say it should give possible interested commandline-users enough help to adapt it to their needs? So I'm not sure if that would be wasted effort...your call. :-D

Have fun,
Garvin

Posted: Fri Aug 25, 2006 10:52 pm
by munk
Crikes that was a quick response, I'd only just edited my last post. Well, I'll leave it if that's ok with you, I'm going to test out the backup plugin I think I saw a while back see what that's about.

Cheers.

Posted: Fri Aug 25, 2006 10:53 pm
by garvinhicking
Hi!

Yeah, definitely I would put more work into the backup plugin, which might also need some polishing. :)

Posted: Fri Aug 25, 2006 10:56 pm
by munk
garvinhicking wrote:Hi!

Yeah, definitely I would put more work into the backup plugin, which might also need some polishing. :)
Ok nice one I'll have a look see how it goes.

Cheers.