[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Site Management Pages Gone (Monkey Wrench Goes Nowhere)
- Subject: [cobalt-users] Re: Site Management Pages Gone (Monkey Wrench Goes Nowhere)
- From: Bruce Timberlake <bruce@xxxxxxxxxx>
- Date: Thu Feb 13 13:43:01 2003
- Organization: BRTNet.org
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> It seems to me that this has been a problem for a very long time.
I agree!
> How long will it take before Sun decides to fix this problem?
It will probably never happen.
> Looking at the source for Cobalt::Meta::vsite, I see the following
> in the del function:
>
> qx[ /bin/rm -fr $AdminPages_dir/siteManage/$self->{name} ];
That's line 891 for those of you keeping track... ;)
> I am going to take a wild guess and assume this may be one area
> that is causing the problem. There are no checks on the
> $self->{name} to ensure that it is set, so if it is empty, this
> would lead to the entire siteManage directory being removed. My
> suggestion would be to either add more checks to the del function
> or to cd to the siteManage directory, then do the 'rm -fr' on the
> site name like so:
>
> qx[ cd $AdminPages_dir/siteManage; /bin/rm -fr $self->{name} ];
I think the 2nd approach (which you illustrated) is the simplest and
most obvious. I'm going to try that on my own box (which I haven't
had any problems with when deleting vsites, BTW, but there's always a
first time, right?) and see what happens...
- --
Bruce Timberlake
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+TBFhvLA2hUZ9kgwRAqrKAJsHsEFgAoC47k6CwfwII1gdRF33tACfSVW2
7wVXlj0PUlL3FslA45bIZew=
=pkil
-----END PGP SIGNATURE-----