fixed for loop

This commit is contained in:
Roland Gruber 2016-05-29 10:50:06 +02:00
parent 36add79764
commit 083f8de056
1 changed files with 2 additions and 2 deletions

View File

@ -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