From d429b5f94c2f16c81075b68261a9199a5753f42e Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 12 Jul 2026 21:53:16 +0100 Subject: [PATCH] fix(webui/updater): announce backup snapshot refresh so slow-network runs don't look frozen After 'Generated apps-tools.json...' the next step reaches remote backup locations (restic over SSH) with its output captured in $(...), so on a slow connection the updater looked stalled with no message. Print an in-progress notice before it, mirroring the per-app refresh hook loop. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: librelad --- scripts/webui/webui_updater.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/webui/webui_updater.sh b/scripts/webui/webui_updater.sh index 1972558..e6f58fc 100755 --- a/scripts/webui/webui_updater.sh +++ b/scripts/webui/webui_updater.sh @@ -89,7 +89,12 @@ webuiLibrePortalUpdate() { checkSuccess "Refreshed ${_app} WebUI data..." done - # Generate Backup locations / snapshots / engines / dashboards + # Generate Backup locations / snapshots / engines / dashboards. + # Announce before running: snapshot generation reaches remote backup + # locations (restic over SSH), and the whole chain's output is + # captured below, so without this the update looks frozen mid-fetch + # — noticeable on slow connections. + isNotice "Refreshing backup dashboard data (fetches remote snapshots — may take a while on slow connections)..." local result; result=$(webuiGenerateBackupLocations && webuiGenerateBackupDashboard && webuiGenerateBackupSnapshots all && webuiGenerateBackupAppStatus && webuiGenerateBackupEngines && webuiGenerateBackupSchema && webuiGenerateBackupPasswords && webuiGenerateBackupMigrate) checkSuccess "Refreshed backup dashboard data..."