diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-12-02 15:19:29 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-12-02 15:19:29 +0300 |
commit | aadd58e6a69766f3082cb56d562956578855100c (patch) | |
tree | 4944a77f634a8116361d22506b5c07cd6d8c04c5 | |
parent | 304a5c20a9d92397048f9ed6319f919ba76da213 (diff) |
Allow option to configure host IDs via profile
-rw-r--r-- | include/consts | 1 | ||||
-rw-r--r-- | include/functions | 2 | ||||
-rw-r--r-- | 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}'" |