From 083f8de0562220a5c4a8ec24d923a5264369e92a Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 29 May 2016 10:50:06 +0200 Subject: [PATCH] fixed for loop --- lam-packaging/RPM/ldap-account-manager.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam-packaging/RPM/ldap-account-manager.spec b/lam-packaging/RPM/ldap-account-manager.spec index 367f03e9..edb25ccd 100644 --- a/lam-packaging/RPM/ldap-account-manager.spec +++ b/lam-packaging/RPM/ldap-account-manager.spec @@ -126,7 +126,7 @@ if [ ! -f /var/lib/%{lam_dir}/config/config.cfg ]; then chown %{lam_uid}:%{lam_gid} /var/lib/%{lam_dir}/config/lam.conf fi fi -for server in "apache2 httpd nginx"; do +for server in apache2 httpd nginx; do if [ `which systemctl` ]; then if [ "`systemctl is-active ${server}.service`" = "active" ]; then systemctl reload ${server}.service @@ -137,7 +137,7 @@ for server in "apache2 httpd nginx"; do done %postun -for server in "apache2 httpd nginx"; do +for server in apache2 httpd nginx; do if [ `which systemctl` ]; then if [ "`systemctl is-active ${server}.service`" = "active" ]; then systemctl reload ${server}.service