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#