[fix] postrm is called in a lot of various way, deleting the installed flag when it shouldnt

This commit is contained in:
Alexandre Aubin 2018-04-24 17:17:27 +02:00
parent cc3c704ba8
commit 13d5073416

9
debian/postrm vendored
View file

@ -1,12 +1,19 @@
#!/bin/bash
# See https://manpages.debian.org/testing/dpkg-dev/deb-postrm.5.en.html
# to understand when / how this script is called...
set -e
if [ "$1" = "purge" ]; then
update-rc.d yunohost-firewall remove >/dev/null
rm -f /etc/yunohost/installed
fi
if [ "$1" = "remove" ]; then
rm -f /etc/yunohost/installed
fi
rm -f /etc/yunohost/installed
#DEBHELPER#