[debian-edu-commits] debian-edu/pkg-team/ 05/08: debian/gosa.postrm: Avoid usage of full paths when testing for presence of executables.
Mike Gabriel
sunweaver at debian.org
Mon Jan 4 23:05:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository gosa.
commit 34080a5c6c1c47d518cdb6fe42a9035cc8418dcb
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Mon Jan 4 23:31:57 2016 +0100
debian/gosa.postrm: Avoid usage of full paths when testing for presence of executables.
---
debian/gosa.postrm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/debian/gosa.postrm b/debian/gosa.postrm
index 2661c12..b9ac922 100755
--- a/debian/gosa.postrm
+++ b/debian/gosa.postrm
@@ -29,8 +29,8 @@ case "$1" in
fi
# Restart servers
- if [ -x /usr/sbin/apache2 ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ if [ -x $(which apache2) ]; then
+ if [ -x $(which invoke-rc.d) ]; then
invoke-rc.d apache2 restart
else
/etc/init.d/apache2 restart
@@ -51,8 +51,8 @@ case "$1" in
fi
# Finally restart servers
- if [ -x /usr/sbin/apache2 ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ if [ -x $(which apache2) ]; then
+ if [ -x $(which invoke-rc.d) ]; then
invoke-rc.d apache2 reload
else
/etc/init.d/apache2 reload
@@ -67,8 +67,8 @@ case "$1" in
fi
# Restart servers
- if [ -x /usr/sbin/lighttpd ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ if [ -x $(which lighttpd) ]; then
+ if [ -x $(which invoke-rc.d) ]; then
invoke-rc.d lighttpd restart
else
/etc/init.d/lighttpd restart
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git
More information about the debian-edu-commits
mailing list