File: postrm

package info (click to toggle)
dbconfig-common 2.0.25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,184 kB
  • sloc: sh: 1,487; makefile: 51; sql: 40; perl: 12
file content (22 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
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
#set -x

if [ -f /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm.sqlite3 ]; then
    . /usr/share/dbconfig-common/dpkg/postrm.sqlite3
    dbc_go db-test-sqlite3 "$@"
fi

if [ "$1" = "purge" ]; then
	rm -f /etc/db-test-sqlite3/debian-db.php
	if command -v ucf >/dev/null; then
		ucf --purge /etc/db-test-sqlite3/debian-db.php
		ucfr --purge db-test-sqlite3 /etc/db-test-sqlite3/debian-db.php
	fi
fi

#DEBHELPER#