File: postgresql-client-common.postrm

package info (click to toggle)
postgresql-common 248%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,464 kB
  • sloc: perl: 4,164; sh: 1,489; makefile: 286; sql: 13; ansic: 10
file content (12 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ "$1" = purge ]; then
    # remove psql history file
    rm -f /var/lib/postgresql/.psql_history
    rmdir /var/lib/postgresql/ 2>/dev/null || true
fi

#DEBHELPER#