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?
Command Line Upgrade Script
-
jhermanns
- Site Admin
- Posts: 378
- Joined: Tue Apr 01, 2003 11:28 pm
- Location: Berlin, Germany
- Contact:
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
)
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:
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
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/
# 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/
Hi Garvin,
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?!
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!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.
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:
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.
Have fun,
Garvin
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.
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yeah, definitely I would put more work into the backup plugin, which might also need some polishing.
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/
# 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/