WebGUI
      Click here to register.
      
PBWG Banner

Custom database names for addsite in WRE

User: cap10morgan
Date: 11/30/2006 2:03 pm
Views: 2166
Rating: 3    Rate [
|
]

To apply: 

Save attached file in your home dir as custom-db-name.tar.gz 

Become root (sudo -s) 

cd /data

tar xzvf ~/custom-db-name.tar.gz 

cd wre/sbin 

patch < ../../addsite.custom-db-name.patch

cd ../lib/Hoster

patch < ../../../Opts.pm.custom-db-name.patch

rm /data/addsite.custom-db-name.patch

rm /data/Opts.pm.custom-db-name.patch 

 

To use:

cd /data/wre/sbin

./addsite --admin-db-pass=WHATEVERITIS --sitename=www.yoursitenamehere.com --db-name=whatever_you_want



Replies

Re: Custom database names for addsite in WRE
User: snapcount
Date: 12/5/2006 3:53 am
Rating: 20    Rate [
|
]
Status: Approved

Flexibility is always good.  Haven't had a chance to look at how you implemented this but I would suggest you submit this as an RFE with a link to your contribution for inclusion in the core.  Make sure you include the word PATCH or similar in the thread title so it's obvious that the code is written.  You can also submit patches like this to the dev list for review to see if it can be included in the core.

Thanks for contributing!  Keep 'em coming =) 


PreviousBackNext