File: postgresql-13-pg-checksums.postinst

package info (click to toggle)
pg-checksums 1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 272 kB
  • sloc: perl: 1,454; ansic: 1,062; sh: 57; makefile: 26
file content (16 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

PKG=postgresql-13-pg-checksums
DIR=/usr/lib/postgresql/13/bin

if dpkg-divert --list | grep -F "/usr/lib/postgresql/13/bin/pg_checksums.pgdg"
then
    dpkg-divert --remove --package ${PKG} --rename \
        --divert ${DIR}/pg_checksums.pgdg ${DIR}/pg_checksums
fi

#DEBHELPER#

exit 0