From aadd58e6a69766f3082cb56d562956578855100c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 2 Dec 2016 13:19:29 +0100 Subject: Allow option to configure host IDs via profile --- include/consts | 1 + include/functions | 2 -- include/profiles | 8 ++++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/consts b/include/consts index 3bb48017..5f642af6 100644 --- a/include/consts +++ b/include/consts @@ -112,6 +112,7 @@ unset LANG HEADBINARY="" HELPER="" HOSTID="" + HOSTID2="" HTTPDBINARY="" IDS_IPS_TOOL_FOUND=0 IPFBINARY="" diff --git a/include/functions b/include/functions index b1b86a53..2ce8708e 100644 --- a/include/functions +++ b/include/functions @@ -772,8 +772,6 @@ ################################################################################ GetHostID() { - HOSTID="" - HOSTID2="" FIND="" # Avoid some hashes (empty, only zeros) BLACKLISTED_HASHES="6ef1338f520d075957424741d7ed35ab5966ae97 adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" diff --git a/include/profiles b/include/profiles index 4e543fad..b28bebd4 100644 --- a/include/profiles +++ b/include/profiles @@ -151,6 +151,14 @@ AddSetting "group" "${GROUP_NAME}" "Group" ;; + hostid) + HOSTID="${VALUE}" + ;; + + hostid2) + HOSTID2="${VALUE}" + ;; + # Language language | lang) LogText "Language set via profile to '${VALUE}'" -- cgit v1.2.3