Skip to content

Commit 51c2d0a

Browse files
authored
Merge pull request #2845 from benderl/fix-restore
fix restore
2 parents 25c98be + 4cdc16a commit 51c2d0a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runs/restore.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ LOG_FILE="$OPENWB_BASE_DIR/data/log/restore.log"
5858
echo "Step 5.1: restore mosquitto db"
5959
if [[ -f "${WORKING_DIR}/mosquitto/mosquitto.db" ]]; then
6060
sudo mv -v -f "${WORKING_DIR}/mosquitto/mosquitto.db" "$MOSQUITTO_DB_DIR/mosquitto.db"
61+
sudo chown mosquitto:mosquitto "$MOSQUITTO_DB_DIR/mosquitto.db"
6162
else
6263
echo "Backup does not contain mosquitto.db. Skipping restore."
6364
fi
6465
if [[ -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" ]]; then
6566
sudo mv -v -f "${WORKING_DIR}/mosquitto_local/mosquitto.db" "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db"
67+
sudo chown mosquitto:mosquitto "$MOSQUITTO_LOCAL_DB_DIR/mosquitto.db"
6668
else
6769
echo "Backup does not contain local mosquitto.db. Skipping restore."
6870
fi

0 commit comments

Comments
 (0)