update paths
This commit is contained in:
+7
-7
@@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source config.conf
|
BASE_DIR="/opt/scripts/vpn-con-checker"
|
||||||
source functions/logging.sh
|
|
||||||
source functions/network_check.sh
|
source "$BASE_DIR/config.conf"
|
||||||
source functions/sql_check.sh
|
source "$BASE_DIR/functions/logging.sh"
|
||||||
source functions/restart_service.sh
|
source "$BASE_DIR/functions/network_check.sh"
|
||||||
|
source "$BASE_DIR/functions/sql_check.sh"
|
||||||
|
source "$BASE_DIR/functions/restart_service.sh"
|
||||||
|
|
||||||
# Funktion zur Prüfung der Arbeitszeit
|
|
||||||
function is_within_business_hours() {
|
function is_within_business_hours() {
|
||||||
current_hour=$(date +%H)
|
current_hour=$(date +%H)
|
||||||
if (( current_hour >= 7 && current_hour < 18 )); then
|
if (( current_hour >= 7 && current_hour < 18 )); then
|
||||||
@@ -16,7 +17,6 @@ function is_within_business_hours() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Hauptscript
|
|
||||||
function main() {
|
function main() {
|
||||||
log_info "Starting VPN monitoring script."
|
log_info "Starting VPN monitoring script."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user