File: pgpool2.postrm

package info (click to toggle)
pgpool2 4.3.5-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,084 kB
  • sloc: ansic: 90,252; yacc: 28,031; sh: 18,042; lex: 2,116; sql: 1,213; makefile: 934; java: 844; asm: 556; php: 125; ruby: 94
file content (19 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

case $1 in
    purge)
	if which ucf >/dev/null; then
	    ucf --purge /etc/pgpool2/pgpool.conf
	fi
	if which ucfr >/dev/null; then
	    ucfr --purge pgpool2 /etc/pgpool2/pgpool.conf
	fi
	rm -f /etc/pgpool2/pgpool.conf /etc/pgpool2/pgpool.conf.ucf-dist
	;;
esac

#DEBHELPER#

exit 0