Allow option to configure host IDs via profile

This commit is contained in:
Michael Boelen 2016-12-02 13:19:29 +01:00
parent 304a5c20a9
commit aadd58e6a6
3 changed files with 9 additions and 2 deletions

View File

@ -112,6 +112,7 @@ unset LANG
HEADBINARY=""
HELPER=""
HOSTID=""
HOSTID2=""
HTTPDBINARY=""
IDS_IPS_TOOL_FOUND=0
IPFBINARY=""

View File

@ -772,8 +772,6 @@
################################################################################
GetHostID() {
HOSTID=""
HOSTID2=""
FIND=""
# Avoid some hashes (empty, only zeros)
BLACKLISTED_HASHES="6ef1338f520d075957424741d7ed35ab5966ae97 adc83b19e793491b1c6ea0fd8b46cd9f32e592fc"

View File

@ -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}'"