From 24c0c66c5538c8c7b420ed90d0a6de20c1153abd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 Jun 2012 16:22:13 +0100 Subject: [PATCH] command -v --- debian/changelog | 3 ++- debian/postinst | 2 +- debian/prerm | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2