[debian-edu-commits] debian-edu/pkg-team/ 02/12: debian/gosa.post*: Use presence of apache2ctl to detect whether GOsa² is supposed to run under Apache2. (Closes: #892571).
Mike Gabriel
sunweaver at debian.org
Fri Apr 20 13:24:10 BST 2018
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository gosa.
commit 73a9fb01421c9eb7f1cc9a3ba51431966300b9a2
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Apr 20 13:07:27 2018 +0200
debian/gosa.post*: Use presence of apache2ctl to detect whether GOsa² is supposed to run under Apache2. (Closes: #892571).
---
debian/gosa.postinst | 2 +-
debian/gosa.postrm | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/gosa.postinst b/debian/gosa.postinst
index 75be155..8b415fc 100755
--- a/debian/gosa.postinst
+++ b/debian/gosa.postinst
@@ -76,7 +76,7 @@ if [ -d /etc/apache2/conf-available ] ; then
apache2_invoke enmod headers
fi
# Finally restart servers
- if [ -x "$(which apache2)" ]; then
+ if [ -x "$(which apache2ctl)" ]; then
if [ -x "$(which invoke-rc.d)" ]; then
invoke-rc.d apache2 reload
else
diff --git a/debian/gosa.postrm b/debian/gosa.postrm
index ed0e4d3..f4adf03 100755
--- a/debian/gosa.postrm
+++ b/debian/gosa.postrm
@@ -33,7 +33,7 @@ case "$1" in
fi
# Restart servers
- if [ -x "$(which apache2)" ]; then
+ if [ -x "$(which apache2ctl)" ]; then
if [ -x "$(which invoke-rc.d)" ]; then
invoke-rc.d apache2 restart
else
@@ -55,7 +55,7 @@ case "$1" in
fi
# Finally restart servers
- if [ -x "$(which apache2)" ]; then
+ if [ -x "$(which apache2ctl)" ]; then
if [ -x "$(which invoke-rc.d)" ]; then
invoke-rc.d apache2 reload
else
--
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