mirror of https://github.com/CISOfy/lynis.git
Smart replacement does not work on Solaris, rewriting domain extraction from FQDN
This commit is contained in:
parent
f9c79007b8
commit
d16732a47a
|
@ -203,7 +203,8 @@
|
|||
DOMAINNAME=${RESOLV_DOMAINNAME}
|
||||
else
|
||||
logtext "Result: using domain name from FQDN hostname"
|
||||
DOMAINNAME=${FQDN#${HOSTNAME}.}
|
||||
#DOMAINNAME=${FQDN#${HOSTNAME}.}
|
||||
DOMAINNAME=`echo ${FQDN} | cut -d . -f2-`
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue