[hobbit] cgi bb-hostedit script released
Just taking a look at this myself.
Using it with bb19c and bbgen 3.5 (not hobbit) so here's some insane testing :-)
It seems to work, aside from the fact that I have a subpage which happenes to have the same name as a page elsewhere in the config file, but the directories created do not conflict anyway, since subpage directories are created under the page directory they belong to. This produces an error message in the script - "Subpage previously defined".
Subpages should be able to have the same names if they exist under different pages, and should also be able to have the same names as pages regardless of where they are.
Brent B McCrackin UNIX Systems Specialist - Bell Sympatico Brent.McCrackin at Bell.ca PH: 416-353-0692 "Serenity through viciousness."
-----Original Message----- From: Schwimmer, Eric E *HS [mailto:EES2Y at hscmail.mcc.virginia.edu] Sent: April 29, 2005 11:45 AM To: hobbit at hswn.dk Subject: RE: [hobbit] cgi bb-hostedit script released
Okay, here's the patch:
http://www.nerdvana.org/eric/files/bb-hostedit-hostdupe-patch
The tarball has been updated; new users don't need to download this patch.
-Eric
-----Original Message----- From: Schwimmer, Eric E *HS [mailto:EES2Y at hscmail.mcc.virginia.edu] Sent: Friday, April 29, 2005 9:31 AM To: hobbit at hswn.dk Subject: RE: [hobbit] cgi bb-hostedit script released
Hi Thomas, thanks for helping test out the script :)
If the a line starts with #, it is a comment. The script reports me a syntax-error I added the following lines: ---snip---
Exclude Comments
elsif($item =~ /^#/) { next; } ---snap---
Ahh, I was handling comments incorrectly (if they had whitespace before them on a line they were being parsed, instead of ignored). Now fixed.
- I included one host on more than one page, so the script reports me about already definded host. To get a step forward, I comment out the part in the sctipt.
Now I see the subpages, but no hosts. I can add hosts to the subpage. I already tried to make a script, that builds the bb-hosts from a MySQL-Database. I got it never finished, because of all the possible combinations :(
If you comment out the line that reads in hosts, its to be expected that you wont see any on the pages/subpages :) I assumed (yet another possibly incorrect assumption on my part) that you couldn't have the same hostname defined in two places in your bigbrother/hobbit hierarchy; I'll have to play around with this some to see how bigbrother behaves. Hopefully, I'll have a patch out in an hour or so.
Regards, -Eric
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Mon, May 02, 2005 at 12:06:55PM -0400, brent.mccrackin at bell.ca wrote:
Subpages should be able to have the same names if they exist under different pages, and should also be able to have the same names as pages regardless of where they are.
Using the same subpage name is not recommended. I wouldn't be surprised if something broke because of that - there's an implicit assumption in Hobbit that pagenames are unique.
Henrik
participants (2)
-
brent.mccrackin@bell.ca
-
henrik@hswn.dk