From: Ian Jackson Date: Sat, 2 Jun 2012 15:22:13 +0000 (+0100) Subject: command -v X-Git-Tag: debian/1.1.0~7 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=24c0c66c5538c8c7b420ed90d0a6de20c1153abd;p=userv.git command -v --- diff --git a/debian/changelog b/debian/changelog index 1c2a5e1..1c0c605 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,7 +10,8 @@ userv (1.1.0~~iwj) unstable; urgency=low * Revision control switched from cvs to git. * Update my email address. - Debian packaging improvements: + Debian packaging improvements and bugfixes: + * Use `command -v' instead of `type' in maintainer scripts. * Remove /var/run/userv from the .deb. (Along with the change in 1.0.6, Closes: #630528.) * The new version will ensure a rebuild and therefore completely deal diff --git a/debian/postinst b/debian/postinst index 583b1b7..a6879b9 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,7 +2,7 @@ set -e update-rc.d userv defaults 19 50 > /dev/null -if type invoke-rc.d >/dev/null 2>&1; then +if command -v invoke-rc.d >/dev/null 2>&1; then invoke-rc.d userv start else /etc/init.d/userv start diff --git a/debian/prerm b/debian/prerm index c40e404..0be459b 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,6 +1,6 @@ #!/bin/sh set -e -if type invoke-rc.d >/dev/null 2>&1; then +if command -v invoke-rc.d >/dev/null 2>&1; then invoke-rc.d userv stop else /etc/init.d/userv stop