Changeset 952baf3 in Klonkt for scripts


Ignore:
Timestamp:
08/07/2026 05:15:52 PM (5 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
ba76bf5
Parents:
f85b2c3 (diff), 0d5bd2c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge GitHub-main (1.7.0) met de VPS-lijn

De twee mains waren een dag gedivergeerd en bevatten elk echt werk. GitHub had 66
commits die nooit langs prutfolio.git zijn gekomen, omdat een parallelle sessie
rechtstreeks naar GitHub pushte vanaf een kloon in /tmp op de VPS. De VPS had twee
commits die GitHub niet had. Geen van beide bevatte de ander, en stable had geen van
de twee.

Bewust een merge en geen rebase: dan blijft beide historie intact en wordt er niets
herschreven waar iemand anders al op voortbouwt.

Drie bestanden raakten beide kanten. Alle drie zijn nagekeken, want dat een merge
automatisch slaagt zegt niets over of hij inhoudelijk klopt:

src/services/ActivityPubService.js

  • de sleutelbinding staat nu boven de nieuwe asSlug-aanroep van 1.7.0, dus de controle komt nog steeds voor de handtekeningcontrole

scripts/klonkt-refresh-updater.sh

  • alleen de opzij-aanpak overleefde; systemctl mask staat nergens meer als code

deploy/MULTI-INSTANCE.md

  • spreekt zichzelf niet tegen: beschrijft opzij zetten, met de reden waarom mask weigert

remarks: het gat dat in de review naar boven kwam staat hiermee ook op de 1.7.0-lijn.
De andere bevindingen uit die review staan nog open en zijn niet in deze merge
opgelost; die horen als beads. Ook nog te doen: dezelfde sleutelbinding op stable
als 1.6.1, want daar is het gat nog open bij self-hosters.

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

Location:
scripts
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/klonkt-refresh-updater.sh

    rf85b2c3 r952baf3  
    3030D="${KLONKT_DIR}"
    3131B=\$(runuser -u ${KLONKT_USER} -- git -C "\$D" rev-parse HEAD 2>/dev/null || true)
    32 runuser -u ${KLONKT_USER} -- git -C "\$D" fetch --depth 1 origin ${BRANCH}
     32# Deepen a shallow checkout ONCE. \`fetch --depth 1\` keeps only the newest commit
     33# and \`checkout -f\` throws away the tree that was there, so after an update the
     34# previous version existed nowhere on the machine: a bad release could not be
     35# undone without the network, and only if you knew which commit to ask for.
     36# One deepening buys back the history; every later fetch keeps it.
     37if [ "\$(runuser -u ${KLONKT_USER} -- git -C "\$D" rev-parse --is-shallow-repository 2>/dev/null)" = "true" ]; then
     38  echo "deepening the checkout once so updates can be rolled back..."
     39  runuser -u ${KLONKT_USER} -- git -C "\$D" fetch --unshallow origin ${BRANCH} || true
     40fi
     41runuser -u ${KLONKT_USER} -- git -C "\$D" fetch origin ${BRANCH}
    3342runuser -u ${KLONKT_USER} -- git -C "\$D" checkout -qf -B ${BRANCH} FETCH_HEAD
    3443A=\$(runuser -u ${KLONKT_USER} -- git -C "\$D" rev-parse HEAD)
     
    5463else
    5564  echo "Klonkt updated (\$A) + restarted \$N instance(s)."
     65fi
     66# History alone is not a rollback; at three in the morning you also need the
     67# command. Print it while the previous commit is still known.
     68if [ -n "\$B" ]; then
     69  echo
     70  echo "Previous version: \$B"
     71  echo "To go back:"
     72  echo "  runuser -u ${KLONKT_USER} -- git -C \$D checkout -qf -B ${BRANCH} \$B"
     73  echo "  then restart the instances (systemctl restart 'klonkt@*')"
    5674fi
    5775EOF
Note: See TracChangeset for help on using the changeset viewer.