Smart replacement does not work on Solaris, rewriting domain extraction from FQDN

This commit is contained in:
mboelen 2015-03-31 19:20:42 +02:00
parent f9c79007b8
commit d16732a47a
1 changed files with 2 additions and 1 deletions

View File

@ -203,7 +203,8 @@
DOMAINNAME=${RESOLV_DOMAINNAME} DOMAINNAME=${RESOLV_DOMAINNAME}
else else
logtext "Result: using domain name from FQDN hostname" logtext "Result: using domain name from FQDN hostname"
DOMAINNAME=${FQDN#${HOSTNAME}.} #DOMAINNAME=${FQDN#${HOSTNAME}.}
DOMAINNAME=`echo ${FQDN} | cut -d . -f2-`
fi fi
fi fi