This commit is contained in:
2024-08-13 09:20:08 +03:00
parent 1f56389cbd
commit dea7d7cd0e
26 changed files with 965 additions and 310 deletions

7
scripts/divert-rm.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -ef
: "${1:?}"
d=$(printf '%s' "/run/postgresql/divert/$1" | tr -s '/')
mkdir -p "${d%/*}"
dpkg-divert --divert "$d" --rename "$1" 2>/dev/null
rm -f "$d"