[DRE-commits] [unicorn] 03/03: lintianisation: command-with-path-in-maintainer-script
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Fri Jun 19 02:58:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch master
in repository unicorn.
commit 05b2cce (HEAD, master)
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Fri Jun 19 02:35:32 2015
lintianisation: command-with-path-in-maintainer-script
---
debian/unicorn.postinst | 2 +-
debian/unicorn.prerm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/unicorn.postinst b/debian/unicorn.postinst
index 7e5d0f9..18d4cd7 100644
--- a/debian/unicorn.postinst
+++ b/debian/unicorn.postinst
@@ -15,7 +15,7 @@ PID=${PID-/run/unicorn.pid}
OLD_PID="${PID}.oldbin"
invoke() {
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ if [ -x "$(which invoke-rc.d)" ]; then
invoke-rc.d $1 $2
else
/etc/init.d/$1 $2
diff --git a/debian/unicorn.prerm b/debian/unicorn.prerm
index 68741da..ffa9a92 100644
--- a/debian/unicorn.prerm
+++ b/debian/unicorn.prerm
@@ -5,7 +5,7 @@ set -e
case "$1" in
remove|deconfigure)
if [ -x /etc/init.d/unicorn ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ if [ -x "$(which invoke-rc.d)" ]; then
invoke-rc.d unicorn stop
else
/etc/init.d/unicorn stop
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/unicorn.git
More information about the Pkg-ruby-extras-commits
mailing list