diff options
author | Peter Palfrader <peter@palfrader.org> | 2012-10-15 14:18:52 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2012-10-15 14:18:52 +0000 |
commit | f34a0629afdb5445f9881d963a7e5fd3686d5c06 (patch) | |
tree | ee0e403488675235dd63b8d44c0f8d9d8133aaac /debian/echolot.postinst | |
parent | b5b8411b6039d621842c93d7fb1175cd0a786481 (diff) |
No longer ship /var/run/echolot in the package (closes: #689889)
Diffstat (limited to 'debian/echolot.postinst')
-rwxr-xr-x | debian/echolot.postinst | 9 |
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# |