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:
-rw-r--r--include/functions13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index d0e2c3d0..6fb792d5 100644
--- a/include/functions
+++ b/include/functions
@@ -45,6 +45,7 @@
# GetHostID Retrieve an unique ID for this host
# IsDebug Check if --debug is used
# IsDeveloperMode Check if --developer is used
+# IsDeveloperVersion Check if program is a developer release
# IsRunning Check if a process is running
# InsertSection Insert a section block
# InsertPluginSection Insert a section block for plugins
@@ -919,6 +920,18 @@
################################################################################
+ # Name : IsDeveloperVersion()
+ # Description : Check if this version is development or stable release
+ #
+ # Returns : 0 (True) or 1 (False)
+ ################################################################################
+
+ IsDeveloperVersion() {
+ if [ "${PROGRAM_RELEASE_TYPE}" = "dev" ]; then return 0; else return 1; fi
+ }
+
+
+ ################################################################################
# Name : IsRunning()
# Description : Check if a process is running
# Returns : 0 (process is running), 1 (process not running)