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>2017-02-21 17:40:06 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-02-21 17:40:06 +0300
commita19a34cbf3e5126c6ebb92715aaa46d13a8419ad (patch)
tree7dede05fe36e7680da4bda0023f31cada93bbe52 /include/profiles
parentb6099612ec143b5cceeaea5294490a501a582d49 (diff)
Allow data uploads to be configured in profile
Diffstat (limited to 'include/profiles')
-rw-r--r--include/profiles11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/profiles b/include/profiles
index 11917586..60d90220 100644
--- a/include/profiles
+++ b/include/profiles
@@ -354,6 +354,17 @@
AddSetting "update-local-version-info" "${UPDATE_LOCAL_VERSION_INFO}" "Update information: local file for latest release"
;;
+ # Colored output
+ upload)
+ SETTING_UPLOAD=no # default
+ FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$") && COLORS=0
+ if [ ! -z "${FIND}" ]; then SETTING_UPLOAD=1; UPLOAD_DATA=1; fi
+ Debug "Upload set to ${SETTING_UPLOAD}"
+ AddSetting "upload" "${SETTING_UPLOAD}" "Data upload after scanning"
+ unset SETTING_UPLOAD
+ ;;
+
+
# Compression of uploads (enabled by default)
upload_compressed | compressed-uploads)
if [ "${VALUE}" = "0" ]; then COMPRESSED_UPLOADS=0; fi