File: postgresql-client-common.postrm

package info (click to toggle)
postgresql-common 282
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,528 kB
  • sloc: perl: 4,170; sh: 1,572; makefile: 327; 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#