X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/cd4738e8f5ede42cba925b58a84c61e22bab8e8f..5e1b22d763640c4d7a09d07920403d8d491b4410:/debian/postrm?ds=sidebyside diff --git a/debian/postrm b/debian/postrm index 2639332..d5384f9 100644 --- a/debian/postrm +++ b/debian/postrm @@ -4,6 +4,12 @@ set -e if [ "$1" = "purge" ]; then if dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* >/dev/null; then - dpkg-statoverride --remove + for i in $(dpkg-statoverride --list /usr/lib/cgi-bin/pks/\* | cut -d " " -f 4); do + dpkg-statoverride --remove $i + done fi + + rm -f /var/log/onak.log /var/log/onak.log.1 /var/log/onak.log.*.gz fi + +#DEBHELPER#