mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
Reorganize project structure
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
. "${SCRIPT_DIR}/logging.sh"
|
||||
. "${SCRIPT_DIR}/../share/logging.sh"
|
||||
|
||||
LOGFILE=/var/log/disk_usage.log
|
||||
touch "$LOGFILE"
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
. "${SCRIPT_DIR}/logging.sh"
|
||||
. "${SCRIPT_DIR}/../share/logging.sh"
|
||||
|
||||
LOGFILE=/var/log/power_usage.log
|
||||
touch "$LOGFILE"
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
. "${SCRIPT_DIR}/logging.sh"
|
||||
. "${SCRIPT_DIR}/../share/logging.sh"
|
||||
|
||||
LOGFILE=/var/log/temperature.log
|
||||
touch "$LOGFILE"
|
||||
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
. "${SCRIPT_DIR}/logging.sh"
|
||||
. "${SCRIPT_DIR}/../share/logging.sh"
|
||||
|
||||
SCRIPTS=(
|
||||
"check-disk-usage.sh"
|
||||
"check-power-usage.sh"
|
||||
"check-temperature.sh"
|
||||
"../metrics/disk-usage.sh"
|
||||
"../metrics/power-usage.sh"
|
||||
"../metrics/temperature.sh"
|
||||
)
|
||||
|
||||
CheckScriptExists() {
|
||||
Reference in New Issue
Block a user