fix(admin): show non-Docker update steps when not running in Docker (#1269)

The "How to Update" modal always rendered Docker commands and claimed the instance runs in Docker, even on bare-metal / LXC installs like Proxmox Community Scripts. It now branches on the is_docker flag the backend already returns: non-Docker installs get a generic "re-run your install method" note plus a link to the update guide. Docker stays the default when the flag is absent, so existing installs are unaffected.
This commit is contained in:
Maurice
2026-06-20 23:40:34 +02:00
parent 4a5cf3d83d
commit 459b092e28
21 changed files with 77 additions and 5 deletions
+3
View File
@@ -272,6 +272,9 @@ const admin: TranslationStrings = {
'admin.update.howTo': 'Come aggiornare',
'admin.update.dockerText':
'La tua istanza TREK è in esecuzione in Docker. Per aggiornare alla versione {version}, esegui i seguenti comandi sul tuo server:',
'admin.update.nonDockerText':
"Questa istanza TREK non è in esecuzione in Docker. Per aggiornare alla versione {version}, riesegui il metodo di installazione o aggiornamento che hai usato — ad esempio, su Proxmox Community Scripts esegui l'aggiornamento dalla console LXC:",
'admin.update.wikiLink': "Apri la guida all'aggiornamento",
'admin.update.reloadHint': 'Ricarica la pagina tra qualche secondo.',
'admin.tabs.permissions': 'Permessi',
'admin.notifications.emailPanel.title': 'Email (SMTP)',