64488fc9
fix: anchor installed data paths to ASSETS, and install schema.sql
Two install-time bugs that only show up on a packaged deploy, never in a checkout. MIGRATIONDIR derived from PREFIX, so a default build installed migrations to /usr/local/share/sourcehut/migrations while specsrht-migrate looked under [sr.ht]assets, default /usr/share/sourcehut. The two agreed only at PREFIX=/usr. Every installed data path now anchors to ASSETS, which is the runtime lookup root. schema.sql was never installed, so specsrht-migrate init could not find the schema it applies wholesale on a fresh database. sourcehut-dolt has the same latent path mismatch. Static assets are guarded so install works before web/ exists.
bigbes <bigbes@gmail.com> — 2026-07-22 10:47:28 UTC
Commit 64488fc9b58e969f624f7615e5baf9e86942914c —
view raw patch
Parent(s):
4562b448
| File | Status | + | − |
|---|---|---|---|
Makefile
|
M | +19 | -4 |