Changeset f434294 in Klonkt for scripts/klonkt-migrate-data.sh
- Timestamp:
- 07/31/2026 02:02:34 PM (6 weeks ago)
- Branches:
- main
- Children:
- 0ca7e9a4
- Parents:
- 5462bab
- File:
-
- 1 edited
-
scripts/klonkt-migrate-data.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scripts/klonkt-migrate-data.sh
r5462bab rf434294 129 129 130 130 step "Switching to klonkt@$SLUG" 131 if systemctl is-enabled --quiet "$OLD_UNIT" 2>/dev/null; then131 if systemctl list-unit-files "$OLD_UNIT" >/dev/null 2>&1; then 132 132 run "systemctl disable --now $OLD_UNIT" 133 say "disabled $OLD_UNIT (file kept, so you can roll back)" 133 # Disable only removes the autostart link: `systemctl restart klonkt` would 134 # still START it. That is not theoretical — an updater generated before the 135 # split does exactly that, and the resurrected unit finds no .env (it moved 136 # with the data), falls back to the built-in defaults and creates a FRESH 137 # EMPTY database in the checkout. Masking makes any such call fail loudly. 138 # Reversible: systemctl unmask klonkt. 139 run "systemctl mask $OLD_UNIT" 140 say "disabled and masked $OLD_UNIT (unmask to roll back)" 134 141 fi 135 142 run "systemctl enable --now 'klonkt@$SLUG'"
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)