mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Smart replacement does not work on Solaris, rewriting domain extraction from FQDN
This commit is contained in:
parent
f9c79007b8
commit
d16732a47a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue