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) <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-07-12 21:53:16 +01:00
parent 9d84e1e918
commit d429b5f94c

View File

@ -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..."