[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Cobalt-AID II - siteManage-fixit
- Subject: [cobalt-users] Cobalt-AID II - siteManage-fixit
- From: "Leslie Herps" <herps@xxxxxxxxxxxx>
- Date: Fri Apr 25 15:33:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
Cobalt Aid II has a siteManage-fixit script.
It restores broken /siteadmin HTMLs...
Now, say everything in /usr/admserv/html/.cobalt/siteManage/ is deleted,
those all /siteadmin's are gone,
if you run the script it creates dirs like:
home (primary site)
site1
site2, and so on
It tries to link back to the domain name doing the following:
ls -al /home/sites/ | grep -e "$b"\$ | grep "\->" | cut -c56-100 |
ut -d\ -f 1
However, that doesn't work...
I think Sun changed the linking mode or whatever.
Example, www.domain.com is site3
ln -s <SOURCE> <TARGET>
what the script does is link <SOURCE> to site3, but source is not
www.domain.com but also site3
so you get a link linked to itself, thus not working
ls -la /home/sites
lrwxrwxrwx 1 root root 17 Apr 25 21:58 www.domain.com ->
/home/sites/site3
What is wrong with "ls -al /home/sites/ | grep -e "$b"\$ | grep "\->" |
cut -c56-100 | cut -d\ -f 1"?
See it won't work without the symlinks in
/usr/admserv/html/.cobalt/siteManage (site# (directories with the HTML)
linked to the domain names matching the site#) cause the GUI uses:
http://MYSERVER:81/.cobalt/siteManage/www.domain.com/
and not
http://MYSERVER:81/.cobalt/siteManage/site#/
Any thoughts?