This file is indexed.

postinst is in pgbackrest 1.25-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

case $1 in
    configure)
	# Make sure we set the permissions only if no previous version
	# was installed.
	if test -z $2; then
	    USER="postgres"
	    GROUP="postgres"

	    DIRS="/var/log/pgbackrest /var/lib/pgbackrest /var/spool/pgbackrest"
	    for dir in $DIRS; do
		mkdir -p $dir
		chown ${USER}:${GROUP} $dir
	    done

	    chown ${USER}:${GROUP} /etc/pgbackrest.conf
	fi
    ;;
esac