Command Line Upgrade Script

Having trouble installing serendipity?
Post Reply
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Command Line Upgrade Script

Post 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?
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post 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 ;))
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
munk
Regular
Posts: 15
Joined: Tue Dec 09, 2003 6:25 pm
Contact:

Post 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?!
Last edited by munk on Fri Aug 25, 2006 10:51 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
munk
Regular
Posts: 15
Joined: Tue Dec 09, 2003 6:25 pm
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yeah, definitely I would put more work into the backup plugin, which might also need some polishing. :)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
munk
Regular
Posts: 15
Joined: Tue Dec 09, 2003 6:25 pm
Contact:

Post 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.
Post Reply