authentic2.postrm: purge everething about configdb
This commit is contained in:
parent
29b664d0a0
commit
2f4bf937f3
|
@ -8,12 +8,25 @@ set -e
|
|||
case "$1" in purge)
|
||||
deluser --quiet --system authentic > /dev/null || true
|
||||
rm -f /etc/authentic2/secret
|
||||
rm -f /etc/authentic2/db.conf
|
||||
rm -rf /var/lib/authentic2/static
|
||||
ucf --purge /etc/authentic2/db.conf
|
||||
ucf --purge /etc/dbconfig-common/authentic2.conf
|
||||
rm -rf /var/lib/authentic2/static/*
|
||||
# source debconf stuff
|
||||
. /usr/share/debconf/confmodule
|
||||
# source dbconfig-common shell library, and call the hook function
|
||||
if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
|
||||
. /usr/share/dbconfig-common/dpkg/postrm.pgsql
|
||||
dbc_go authentic2 $@
|
||||
fi
|
||||
|
||||
DBCONF=/etc/authentic2/db.conf
|
||||
if [ "$1" = "purge" ]; then
|
||||
rm -f $DBCONF
|
||||
if which ucf >/dev/null 2>&1; then
|
||||
ucf --purge $DBCONF
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue