From f34a0629afdb5445f9881d963a7e5fd3686d5c06 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Oct 2012 14:18:52 +0000 Subject: No longer ship /var/run/echolot in the package (closes: #689889) --- debian/echolot.postinst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'debian/echolot.postinst') 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# -- cgit v1.2.3