summaryrefslogtreecommitdiff
path: root/debian/echolot.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/echolot.postinst')
-rwxr-xr-xdebian/echolot.postinst9
1 files changed, 5 insertions, 4 deletions
diff --git a/debian/echolot.postinst b/debian/echolot.postinst
index 4004475..3abf03d 100755
--- a/debian/echolot.postinst
+++ b/debian/echolot.postinst
@@ -9,6 +9,11 @@ if [ "$1" = "configure" ] && [ -e /usr/share/debconf/confmodule ]; then
db_stop
fi
fi
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "2.1.8-7"; then
+ if ( dpkg-statoverride --list /var/run/echolot > /dev/null ); then
+ dpkg-statoverride --remove /var/run/echolot
+ fi
+fi
# Make sure the echolot user exists
adduser --quiet \
@@ -30,10 +35,6 @@ chmod 640 /var/log/echolot/echolot.log
if ( ! dpkg-statoverride --list /var/lib/echolot > /dev/null ); then
dpkg-statoverride --update --add root echolot 02775 /var/lib/echolot
fi
-# and /var/run/echolot
-if ( ! dpkg-statoverride --list /var/run/echolot > /dev/null ); then
- dpkg-statoverride --update --add root echolot 02770 /var/run/echolot
-fi
#DEBHELPER#