summaryrefslogtreecommitdiff
path: root/extra/apache/apache.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/apache/apache.install')
-rw-r--r--extra/apache/apache.install10
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/apache/apache.install b/extra/apache/apache.install
index 3ca8cfcee..5665f08f6 100644
--- a/extra/apache/apache.install
+++ b/extra/apache/apache.install
@@ -1,12 +1,16 @@
post_install() {
- type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --create apache.conf
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
}
post_upgrade() {
- type -P systemd-tmpfiles >/dev/null && systemd-tmpfiles --create apache.conf
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
if [[ $2 == 2\.2\.* ]]; then
# it is a major upgrade, show a useful link to upgrade instructions
- echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/trunk/upgrading.html'
+ echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/2.4/upgrading.html'
fi
}