postgresql-citus-patroni-image/scripts/divert-rm.sh
2024-08-13 09:20:08 +03:00

8 lines
168 B
Bash
Executable File

#!/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"