added domain lookup from /etc/resolve.conf for hostname
This commit is contained in:
@@ -37,7 +37,7 @@ set -e
|
||||
|
||||
API_URL="http://${CHECK_MK_SERVER}/${SITE_NAME}/check_mk/api/1.0"
|
||||
AUTHORIZATION_HEADER="Authorization: Bearer ${USERNAME} ${PASSWORD}"
|
||||
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" HOSTNAME
|
||||
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname).$(grep -oPi "(?<=^search ).*" /etc/resolv.conf)" HOSTNAME
|
||||
|
||||
tmpdir=$(mktemp -d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user