Skip to content

Commit

Permalink
Allow data uploads to be configured in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mboelen committed Feb 21, 2017
1 parent b609961 commit a19a34c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions default.prf
Original file line number Diff line number Diff line change
Expand Up @@ -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=

Expand Down
11 changes: 11 additions & 0 deletions include/profiles
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a19a34c

Please sign in to comment.