[arch-commits] Commit in apache/trunk (apache.install)

Anatol Pomozov anatolik at nymeria.archlinux.org
Wed Mar 12 18:39:29 UTC 2014


    Date: Wednesday, March 12, 2014 @ 19:39:28
  Author: anatolik
Revision: 207605

Do not use compound bash expression in install() as it might return false and cause an installation error

Modified:
  apache/trunk/apache.install

----------------+
 apache.install |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: apache.install
===================================================================
--- apache.install	2014-03-12 18:24:07 UTC (rev 207604)
+++ apache.install	2014-03-12 18:39:28 UTC (rev 207605)
@@ -1,9 +1,13 @@
 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




More information about the arch-commits mailing list