docs(uninstall): 更正 felis_pgint 的来历说明

This commit is contained in:
Lemon-miaow committed 2026-09-26 11:38:34 +08:00
1 parent 1f2a6130ac
commit 12d2697801
3 files changed
+7 -6

No files matched your search

+5 -4
View File
@@ -340,10 +340,11 @@ remove_hba_block() { # file
rm -f "$tmp"
}
# check_database_purge runs before anything is removed: DROP ROLE refuses a role that
# still owns a database or holds anything in one besides felis (a felis_pgint left by
# `felis db pgint`, a grant made by hand), and by then the units and k3s are already gone.
# It lists what holds the role instead, so the purge either runs to the end or not at all.
# check_database_purge runs before anything is removed. DROP ROLE refuses a role that
# still owns a database or holds anything in one besides felis (the felis_pgint database
# CONTRIBUTING.md has developers make for the PG contract tests, a grant made by hand),
# and by the time purge_database runs the units and k3s are already gone. It lists what
# holds the role instead, so the purge either runs to the end or not at all.
check_database_purge() {
[ "$PURGE" = 1 ] || return 0
systemctl is-active --quiet postgresql 2>/dev/null || return 0
+1 -1
View File
@@ -191,7 +191,7 @@ esac
expect "purge cleans Docker's build cache" "DOCKER builder prune -af" "$calls"
# --- a purge DROP ROLE would refuse -------------------------------------------------------
# The VM drill: `felis db pgint` had left felis_pgint owned by felis, the purge removed the
# The VM drill: the PG contract tests' felis_pgint was owned by felis, the purge removed the
# units and k3s, then stopped at DROP ROLE with half the host gone.
untouched() { # label
[ -d "$root/h/opt" ] && [ -f "$root/h/units/felis-velocity.service" ] && [ -d "$root/h/etc" ] \