Skip to content
Snippets Groups Projects
Commit 7c0eb100 authored by Peter Palfrader's avatar Peter Palfrader
Browse files

Use command -v $foo instead of [ -x /sbin/$foo ] in maintainer script

parent 297b096e
No related branches found
No related tags found
No related merge requests found
tor (0.2.9.4-alpha-1.1) experimental; urgency=medium
* Raise Standards-Version to 3.9.8 - no changes needed.
* Use command -v $foo instead of [ -x /sbin/$foo ] in maintainer script.
-- Peter Palfrader <weasel@debian.org> Tue, 08 Nov 2016 13:27:58 +0100
-- Peter Palfrader <weasel@debian.org> Tue, 08 Nov 2016 13:30:40 +0100
tor (0.2.9.4-alpha-1) experimental; urgency=medium
......
......@@ -121,7 +121,7 @@ if [ "$1" = "configure" ] &&
checksum="`md5sum /etc/apparmor.d/usr.sbin.tor | awk '{print $1}'`"
pkg_md5="`dpkg-query -W -f='${Conffiles}' tor | awk '$1=="/etc/apparmor.d/usr.sbin.tor" {print $2}'`"
if [ "$checksum" = "$pkg_md5" ]; then
if [ -x /sbin/apparmor_parser ] ; then
if command -v apparmor_parser > /dev/null 2>&1 ; then
apparmor_parser --remove -T -W /etc/apparmor.d/usr.sbin.tor || true
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment