From a04267a931bfa435ff1268d8e16d3b4556c473c8 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Tue, 28 Nov 2023 12:14:58 +0100 Subject: [PATCH] Change health_status dir --- healthcheck.cpp | 2 +- healthcheck.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck.cpp b/healthcheck.cpp index 56f16c4..6f65c5c 100644 --- a/healthcheck.cpp +++ b/healthcheck.cpp @@ -10,7 +10,7 @@ using namespace std::chrono_literals; std::chrono::steady_clock::time_point last_msg_time; void write_health_status(const std::string &status) { - std::ofstream healthFile("/health_status.txt"); + std::ofstream healthFile("/var/tmp/health_status.txt"); healthFile << status; } diff --git a/healthcheck.sh b/healthcheck.sh index e25879f..7cae7a1 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,6 +1,6 @@ #!/bin/bash -HEALTHCHECK_FILE="/health_status.txt" +HEALTHCHECK_FILE="/var/tmp/health_status.txt" # Now check the health status