improved exit
This commit is contained in:
+4
-2
@@ -1,6 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Source Konfigurations- und Modul-Dateien
|
||||
source config.conf
|
||||
source functions/logging.sh
|
||||
source functions/network_check.sh
|
||||
@@ -17,7 +16,7 @@ function is_within_business_hours() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Hauptlogik
|
||||
# Hauptscript
|
||||
function main() {
|
||||
log_info "Starting VPN monitoring script."
|
||||
|
||||
@@ -28,6 +27,9 @@ function main() {
|
||||
log_info "Outside business hours. Running SQL activity check."
|
||||
check_sql_activity
|
||||
fi
|
||||
|
||||
log_info "VPN monitoring script completed successfully."
|
||||
exit 0
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
Reference in New Issue
Block a user