Skip to content

Commit

Permalink
Merge pull request openWB#1554 from LKuemmel/fix
Browse files Browse the repository at this point in the history
fix resetting backup_before_update at reboot, fix show update in prog…
  • Loading branch information
LKuemmel authored Apr 16, 2024
2 parents 930e79e + d3e7583 commit 091efaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/helpermodules/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ def systemShutdown(self, connection_id: str, payload: dict) -> None:

def systemUpdate(self, connection_id: str, payload: dict) -> None:
log.info("Update requested")
# notify system about running update, notify abput end update in script
Pub().pub("openWB/system/update_in_progress", True)
if SubData.system_data["system"].data["backup_before_update"]:
self.createCloudBackup(connection_id, {})
parent_file = Path(__file__).resolve().parents[2]
Expand Down
2 changes: 1 addition & 1 deletion packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class UpdateConfig:
"^openWB/system/backup_cloud/config$",
"^openWB/system/boot_done$",
"^openWB/system/configurable/backup_clouds$",
"^openWB/system/backup_cloud/backup_before_update$"
"^openWB/system/backup_cloud/backup_before_update$",
"^openWB/system/configurable/chargepoints$",
"^openWB/system/configurable/chargepoints_internal$",
"^openWB/system/configurable/devices_components$",
Expand Down
3 changes: 0 additions & 3 deletions runs/update_self.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ SELECTEDTAG=$2
echo "#### running update ####" >"$LOGFILE"

{
# notify system about running update
mosquitto_pub -p 1886 -t "openWB/system/update_in_progress" -r -m 'true'

# fetch new release from GitHub
echo "#### 1. fetching latest data from '$GITREMOTE' ####"
git -C "$OPENWBBASEDIR" fetch -v "$GITREMOTE" && echo "#### done"
Expand Down

0 comments on commit 091efaf

Please sign in to comment.