Changeset 7a235bc in Klonkt for src/services/i18n.js


Ignore:
Timestamp:
06/25/2026 05:56:08 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
f0c3f83
Parents:
6a51968
Message:

feat(updates): make the in-app updater GitHub/upstream-aware for self-hosters

The Updates page checked a hardcoded bare repo (KLONKT_GIT_DIR) that only exists on
Robin's VPS fleet, so a GitHub-clone install logged 'fatal: not a git repository' and
couldn't show its version. Now it auto-detects topology: a git CHECKOUT (app dir has
.git, origin=GitHub) checks origin/<branch> (fetched on view); the BARE-repo fleet is
unchanged. git stderr is ignored so a foreign/missing repo never spams the console.
External installs can't self-update in-app (klonkt-update needs root for systemd), so
the page shows the 'sudo klonkt-update' command instead of a button. Fleet keeps the
detached-script button.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/i18n.js

    r6a51968 r7a235bc  
    628628    'aupd.update_now': 'Nu bijwerken',
    629629    'aupd.help': 'Bijwerken haalt de nieuwste code op en herstart deze site kort (~10s). Doe dit rustig — er gaat niets verloren (je posts, instellingen en cirkel blijven staan).',
     630    'aupd.manual_hint': 'Werk bij vanaf GitHub door dit op je server uit te voeren:',
    630631    'aepk.title': 'Perskit bewerken',
    631632    'aepk.back_admin': 'Beheer',
     
    16251626    'aupd.update_now': 'Update now',
    16261627    'aupd.help': 'Updating fetches the latest code and restarts this site briefly (~10s). Take your time — nothing is lost (your posts, settings and circle stay intact).',
     1628    'aupd.manual_hint': 'Update from GitHub by running this on your server:',
    16271629    'aepk.title': 'Edit press kit',
    16281630    'aepk.back_admin': 'Admin',
     
    26212623    'aupd.update_now': 'Jetzt aktualisieren',
    26222624    'aupd.help': 'Das Aktualisieren holt den neuesten Code und startet diese Seite kurz neu (~10s). Lass dir Zeit — es geht nichts verloren (deine Beiträge, Einstellungen und dein Zirkel bleiben erhalten).',
     2625    'aupd.manual_hint': 'Aktualisiere von GitHub, indem du dies auf deinem Server ausführst:',
    26232626    'aepk.title': 'Pressekit bearbeiten',
    26242627    'aepk.back_admin': 'Verwaltung',
Note: See TracChangeset for help on using the changeset viewer.