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-31 12:48:04 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-31 12:48:04 +0300
commit9b00ea7d403bfe975d4e4e022a6f826b8d9f6372 (patch)
treee3b95aba8938844c06235ac3d165dcb8cb45cc6e
parent62c7b463114399096bcbcf0c3bdca4beb70a46bf (diff)
Perform early tests before running main program
-rwxr-xr-xlynis5
1 files changed, 5 insertions, 0 deletions
diff --git a/lynis b/lynis
index 567d93a2..5932baf2 100755
--- a/lynis
+++ b/lynis
@@ -545,6 +545,11 @@ ${NORMAL}
fi
fi
LogTextBreak
+
+ # Pre-execution tests
+ if [ ${UPLOAD_DATA} -eq 1 -a -z "${LICENSE_KEY}" ]; then DisplayError "${ERROR_NO_LICENSE}" 64; fi
+ if [ ${UPLOAD_DATA} -eq 1 -a -z "${UPLOAD_SERVER}" ]; then DisplayError "${ERROR_NO_UPLOAD_SERVER}" 64; fi
+
#
#################################################################################
#