From a19a34cbf3e5126c6ebb92715aaa46d13a8419ad Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 21 Feb 2017 15:40:06 +0100 Subject: Allow data uploads to be configured in profile --- default.prf | 3 +++ include/profiles | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/default.prf b/default.prf index 6adf7d8c..abf6b75e 100644 --- a/default.prf +++ b/default.prf @@ -76,6 +76,9 @@ skip-plugins=no # Scan type - how deep the audit should be (light, normal or full) test-scan-mode=full +# Upload data to central server +upload=no + # The hostname/IP address to receive the data upload-server= 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 -- cgit v1.2.3