diff --git a/usr/lib/greenboot/check/required.d/02_watchdog.sh b/usr/lib/greenboot/check/required.d/02_watchdog.sh index b072288..959254f 100644 --- a/usr/lib/greenboot/check/required.d/02_watchdog.sh +++ b/usr/lib/greenboot/check/required.d/02_watchdog.sh @@ -4,6 +4,7 @@ set -eo pipefail source_configuration_file() { GREENBOOT_CONFIGURATION_FILE=/etc/greenboot/greenboot.conf if test -f "$GREENBOOT_CONFIGURATION_FILE"; then + # shellcheck source=etc/greenboot/greenboot.conf source $GREENBOOT_CONFIGURATION_FILE fi } @@ -54,7 +55,7 @@ if [ "${1}" != "--source-only" ]; then echo "Watchdog check is disabled" exit 0 fi - + set_grace_period SECONDS_IN_AN_HOUR=$((60 * 60))