diff options
author | Rich Megginson <rmeggins@redhat.com> | 2005-04-06 02:39:49 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2005-04-06 02:39:49 +0000 |
commit | a5faf5bed67ce8d7ffe351116ad4ca2479e07d40 (patch) | |
tree | 6f2d50f22d348027a82a62d5773ba7ef946d2a72 | |
parent | 4b79c61daf40c97305742a3f33870007734837f4 (diff) | |
download | ds-a5faf5bed67ce8d7ffe351116ad4ca2479e07d40.tar.gz ds-a5faf5bed67ce8d7ffe351116ad4ca2479e07d40.tar.xz ds-a5faf5bed67ce8d7ffe351116ad4ca2479e07d40.zip |
Bug(s) fixed: 145179
Bug Description: RPM install: A suffix must be a valid DN
Reviewed by: Nathan (Thanks!)
Fix Description: Try to get the FQDN for the default. If nothing else, use localhost.localdomain
Platforms tested: RHEL3
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
-rwxr-xr-x | ldap/cm/newinst/setup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ldap/cm/newinst/setup b/ldap/cm/newinst/setup index 7162b919..13e6724b 100755 --- a/ldap/cm/newinst/setup +++ b/ldap/cm/newinst/setup @@ -116,6 +116,13 @@ if ! [ $silent ]; then # put some common answers in the file hostname=`hostname` + tryhost=`host $hostname | grep -v "not found" | awk '{print $1}'` + if [ "$tryhost" ] ; then + hostname=$tryhost + fi + if ! [ $hostname ] ; then + hostname=localhost.localdomain + fi echo "" | tee -a $logfile echo -n "Hostname to use (default: $hostname) " | tee -a $logfile read ans |