From 4cdc16a968b4841d8e00c3f122ebc1e5a75c8abb Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Thu, 23 Oct 2025 08:30:01 +0200 Subject: [PATCH] fix mosquitto.db ownership --- runs/restore.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runs/restore.sh b/runs/restore.sh index 20a36c07b9..c9a1c91fc7 100755 --- a/runs/restore.sh +++ b/runs/restore.sh @@ -58,11 +58,13 @@ LOG_FILE="$OPENWB_BASE_DIR/data/log/restore.log" echo "Step 5.1: restore mosquitto db" if [[ -f "${WORKING_DIR}/mosquitto/mosquitto.db" ]]; then sudo mv -v -f "${WORKING_DIR}/mosquitto/mosquitto.db" "$MOSQUITTO_DB_DIR/mosquitto.db" + sudo chown mosquitto:mosquitto "$MOSQUITTO_DB_DIR/mosquitto.db" else echo "Backup does not contain mosquitto.db. Skipping restore." fi if [[ -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" ]]; then sudo mv -v -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db" + sudo chown mosquitto:mosquitto "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db" else echo "Backup does not contain local mosquitto.db. Skipping restore." fi