|
@@ -225,7 +225,13 @@ async def perform_ssh_update(device_id: str, ip_address: str, install_path: str
|
|
|
await _update_progress("error", f"Service restart failed: {stderr[:200]}")
|
|
await _update_progress("error", f"Service restart failed: {stderr[:200]}")
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
- # Step 6: Restart kiosk browser to load updated frontend
|
|
|
|
|
|
|
+ # Step 6: Clear browser cache and restart kiosk
|
|
|
|
|
+ # Remove Chromium's Service Worker + cache storage to prevent stale frontend
|
|
|
|
|
+ await _run_ssh_command(
|
|
|
|
|
+ ip_address,
|
|
|
|
|
+ "sudo find /home -maxdepth 5 -path '*/chromium/Default/Service Worker' -type d -exec rm -rf {} + 2>/dev/null; true",
|
|
|
|
|
+ private_key,
|
|
|
|
|
+ )
|
|
|
rc, _, stderr = await _run_ssh_command(
|
|
rc, _, stderr = await _run_ssh_command(
|
|
|
ip_address,
|
|
ip_address,
|
|
|
"sudo /usr/bin/systemctl restart getty@tty1.service",
|
|
"sudo /usr/bin/systemctl restart getty@tty1.service",
|