Added constants.sh
This commit is contained in:
parent
ab62b8dd73
commit
81bd752b37
3 changed files with 6 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
# set -euo pipefail
|
||||
|
||||
source functions.sh
|
||||
source constants.sh
|
||||
|
||||
# Trap the signals for container exit and run graceful_exit function
|
||||
trap 'graceful_exit' SIGINT SIGQUIT SIGTERM
|
||||
|
|
@ -51,8 +52,6 @@ echo "CPU temperature threshold: "$CPU_TEMPERATURE_THRESHOLD"°C"
|
|||
echo "Check interval: ${CHECK_INTERVAL}s"
|
||||
echo ""
|
||||
|
||||
# Define the interval for printing
|
||||
readonly TABLE_HEADER_PRINT_INTERVAL=10
|
||||
TABLE_HEADER_PRINT_COUNTER=$TABLE_HEADER_PRINT_INTERVAL
|
||||
# Set the flag used to check if the active fan control profile has changed
|
||||
IS_DELL_FAN_CONTROL_PROFILE_APPLIED=true
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ RUN apt-get update
|
|||
RUN apt-get install ipmitool -y
|
||||
|
||||
ADD functions.sh /app/functions.sh
|
||||
ADD constants.sh /app/constants.sh
|
||||
ADD healthcheck.sh /app/healthcheck.sh
|
||||
ADD Dell_iDRAC_fan_controller.sh /app/Dell_iDRAC_fan_controller.sh
|
||||
|
||||
|
|
|
|||
4
constants.sh
Normal file
4
constants.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Define the interval for printing temperature table header
|
||||
readonly TABLE_HEADER_PRINT_INTERVAL=10
|
||||
Loading…
Add table
Add a link
Reference in a new issue