19,20 → 19,24 |
|
|
case "$1" in |
purge) |
deluser --system --quiet prayer || true |
rm -rf /var/log/prayer |
dpkg-statoverride --remove /var/log/prayer |
[ -e /var/run/prayer/ ] || dpkg-statoverride --remove /var/run/prayer |
upgrade|abort-install|failed-upgrade|abort-upgrade) |
;; |
|
remove|disappear) |
find /var/run/prayer/ -mindepth 1 \( -type s -o -name ssl_scache -o -empty \) -delete |
|
rm -rf /var/run/prayer |
;; |
|
upgrade|abort-install|failed-upgrade|abort-upgrade) |
|
purge) |
rm -rf /var/log/prayer |
if dpkg-statoverride --list /var/log/prayer >/dev/null 2>&1; then |
dpkg-statoverride --remove /var/log/prayer |
fi |
if dpkg-statoverride --list /var/run/prayer >/dev/null 2>&1; then |
dpkg-statoverride --remove /var/run/prayer |
fi |
if [ -x /usr/sbin/deluser ]; then |
deluser --system --quiet prayer || true |
fi |
;; |
|
*) |