Skip to content

Commit d91c789

Browse files
committed
fix: move backup path outside meshcentral-data folder
MeshCentral does not allow backupPath inside dataPath. Changed BACKUP_PATH from /data/meshcentral-data/meshcentral-backups to /data/meshcentral-backups to fix the backup warning. Bump version to 0.2.6.
1 parent bba83af commit d91c789

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

meshcentral/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MeshCentral",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"slug": "meshcentral",
55
"description": "Self-hosted remote device management — monitor and control your PCs from Home Assistant",
66
"url": "https://github.com/andlo/ha-meshcentral-addon",

meshcentral/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SMTP_ENABLED=$(bashio::config 'smtp_enabled')
1515
# Data path — fixed location inside HA addon data
1616
DATA_PATH="/data/meshcentral-data"
1717
FILES_PATH="${DATA_PATH}/meshcentral-files"
18-
BACKUP_PATH="${DATA_PATH}/meshcentral-backups"
18+
BACKUP_PATH="/data/meshcentral-backups"
1919
RECORDINGS_PATH="${DATA_PATH}/meshcentral-recordings"
2020
CONFIG_FILE="${DATA_PATH}/config.json"
2121

@@ -87,7 +87,7 @@ if bashio::config.has_value 'agent_blocked_ip'; then
8787
SETTINGS=$(echo "$SETTINGS" | jq --arg v "$(bashio::config 'agent_blocked_ip')" '. + {agentBlockedIP: $v}')
8888
fi
8989

90-
# Autobackup — always enabled
90+
# Autobackup — placeres uden for DATA_PATH
9191
SETTINGS=$(echo "$SETTINGS" | jq --arg bp "$BACKUP_PATH" '. + {autoBackup: {backupPath: $bp}}')
9292

9393
# ── Build domain ──────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)