plainblack.com
Username Password
search
Bookmark and Share

switch_webgui.pl -- Switch between WebGUI source directories

This small script allows you to quickly switch between different versions of the WebGUI source.

Given a symbolic link at /data/WebGUI, it deletes the link and creates a new link to the directory you specify.

It also looks through the WRE's Apache configurations and disables/enables the appropriate WebGUI sites handled by this WebGUI source.

This script will only work on *nix-type operating systems.

Please read `perl switch_webgui.pl --help` and `perldoc switch_webgui.pl` for more information. 

Bugreports and patches welcome. 

CHANGELOG

v1.01 - 2007-07-13 - Added ability to enable/disable one more Apache configuration file. Defaults to the WRE's mod_proxy instance. 

v1.02 - 2007-10-18 - Added more configuration options. This version will work with WRE 0.8 and can be configured to run with WRE 0.7.2. 

v1.03 - 2007-10-18 - Fixed a problem with DOS line endings in the Apache configuration file. 

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
2knowmad: "
Doug,

Given that there are significant differences in the database schemas between versions, how do you recommend using this script so that the websites work as expected. My guess is that you use different sites for the different versions. Is that your tactic?

What if you want to test a site under 7.4.x that is currently running under 7.3.22? I'd like to have the site running under both versions but upgrading the database to 7.4.x will break it under 7.3.22. Do you create a new site under 7.3.22, import the database then upgrade that site to 7.4? This script would really rock even more if it could handle that tedium!

 

Thanks,
William 

----
Knowmad Technologies
http://www.knowmad.com
"
3knowmad: "
When using switcher to setup 7.4 and 7.5, I had to revisit http://localhost:60834/setup to prepare the database for 7.5. Without it, WebGUI created an empty site database for the new 7.5 site. This caused lots of errors when starting mod_perl.

After re-running /setup, I deleted the site then re-added it.

 

William

----
Knowmad Technologies
http://www.knowmad.com
"
Downloadswitch_webgui_pl.txt switch_webgui_pl.txt
LinksNo Support Offered
Statistics Downloads: 495
Views: 3392
Rating: 3
Updated: 10/18/2007
Keywords miscellaneous
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved