[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [cobalt-users] Admin site missing in GUI
- Subject: Re[2]: [cobalt-users] Admin site missing in GUI
- From: Chris Saunders <chris@xxxxxxxxxxxx>
- Date: Tue Aug 20 08:11:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
We wrote this script to build the adm pages:
It has to be run twice, and requires a file with a list of domains and
sites....
I didn't know that other parts of the cobalt got trashed as well....
Argh.... I hate to say it, but our cobalts have the highest maintenance of
all our servers.... and we bought them for lower maintenance reasons.....
Oh well, when they work...they work pretty good.
#!/usr/bin/perl
@pages = qw [right.html index.html];
$pp = q|/usr/admserv/html/.cobalt/siteManage|;
$odn = q/site1/;
open(IN,"<bob.b");
@in=<IN>;
close(IN);
chomp(@in);
# open the bob.b file, this contains the domain -> site relationship;
foreach $dn (@in) {
@tmp = split(" -> ", $dn);
# loop through the @pages array. this is menu1-blah and whatnot;
foreach $ln (@pages) {
@tmpfile = ();
$newfile = "";
# open the sitemanage/menu file;
open(TT, "<$pp/$tmp[1]/$ln");
@tmpfile = <TT>;
close(TT);
# loop through the html file to look for lines containing
movieos
foreach $line (@tmpfile) {
# substitute movieos.net for the domainname
$line =~ s/$odn/$tmp[1]/g;
$newfile .= $line;
}
# open the output file for writing (sitemanage/menuwhatever)
open(OT,">$pp/$tmp[1]/$ln");
print OT $newfile;
close(OT);
print "$tmp[0] has been completed\n";
}
}
At 10:54 AM 8/20/2002 -0400, you wrote:
On Tue, 20 Aug 2002, Chris Saunders wrote:
> I discovered the fix for my issue:
>
> In /etc/mail/local-host-names
> I had to re-add every domain with and without the subdomains.
>
> Thanks for the help all.
>
> PS: Use the script to rebuild the Site files, building your own will lock
> your custoemrs out of there site admin functions LOL
>
What doe you mean be "building your own" ?
TIA
Gerald
--
http://frontstreetnetworks.com | Website Hosts & SOHO Networks
229 Front Street, Ste.#C, New Haven, CT. 06513 United States
voice +1 203-785-0699 | fax +1 203-785-1787
_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users