landon: site-conf suggestion

Date: Wed, 29 Jan 1997 09:43:59 -0400
From: Landon Boyd <landon@chebucto.ns.ca>
To: David John Murdoch <djm@duncan.alt.ns.ca>
cc: csuite-tech@chebucto.ns.ca
Precedence: bulk

next message in archive
no next message in thread
previous message in archive
Index of Subjects


On Wed, 29 Jan 1997, David John Murdoch wrote:

> In site-conf, perhaps a test [ -z "$HOSTNAME" ] is necessary
> before using it? If it is empty, could we do something like
> HOSTNAME=`hostname`  ?

This is something I recently changed in csbuild.  Unfortunately, there
doesn't seem to be a truly portable way to get a fully qualified system
host name.  `hostname` on some systems returns only the node name, (eg. 
landon, csuite, soltst) instead of the full host name.  If this is the
case, csbuild now tries a few methods to find the domain name, including a
look into /etc/resolv.conf if all else fails. 

Anyway, the reason the variables aren't being set is because of the
following three lines in site-conf.  site-conf thinks that these variables
are being set from the vars file, so when you accept the defaults it does
not update vars.  Should be easy to fix.

> [ -z "$MAILHOST" ] && MAILHOST="$HOSTNAME"
> [ -z "$WEBHOST" ] && WEBHOST="$HOSTNAME"
> [ -z "$SYS_ALIASES" ] && SYS_ALIASES="$HOSTNAME"


Landon


> 
> --
>  David Murdoch      djm@duncan.alt.ns.ca      Halifax, Nova Scotia, Canada
>    	      <"http://www.chebucto.ns.ca/~djm">DJM</a>
> 
> 


==================================================================
Landon Boyd                          landon@chebucto.ns.ca
Distribution Support Technician,     http://chebucto.ns.ca/~landon
Chebucto Community Net               902-455-4099hm 902-494-2449wk
==================================================================



next message in archive
no next message in thread
previous message in archive
Index of Subjects