diff --git a/scripts/emergency/_relocate-common.sh b/scripts/emergency/_relocate-common.sh new file mode 100755 index 0000000..567453d --- /dev/null +++ b/scripts/emergency/_relocate-common.sh @@ -0,0 +1,236 @@ +#!/bin/sh +# +# Shared helpers for relocate-stack-paths (SQLite + PostgreSQL variants source this). +# Contains the pure re-anchor rule and the interactive/dry-run presentation, so the +# only difference between the two DB variants is how they read/write the database. +# +# The DB variant must define, before sourcing this file: +# db_list_stack_paths -> prints one row per (compose|env) path as: +# \t\t