Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-14 16:26:46 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-14 16:26:46 +0300
commit7ec51cdae094f07ad3981b2a434a80749291d90e (patch)
treef2d744592885cc8f7aaf83171fe03e8e9d9a708e
parentfe53964f0a6b8981147475bf01087ac8e1c0297c (diff)
Only use license key when it is defined
-rw-r--r--include/profiles8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/profiles b/include/profiles
index be18781d..5130397b 100644
--- a/include/profiles
+++ b/include/profiles
@@ -145,9 +145,11 @@
# Lynis Enterprise license key
license_key | license-key)
- LICENSE_KEY="${VALUE}"
- Report "license_key=${LICENSE_KEY}"
- AddSetting "license-key" "${LICENSE_KEY}" "License key"
+ if [ ! "${VALUE}" = "" ]; then
+ LICENSE_KEY="${VALUE}"
+ Report "license_key=${VALUE}"
+ fi
+ AddSetting "license-key" "${VALUE}" "License key"
;;
# Do (not) log tests if they have an different operating system