reduce messages

This commit is contained in:
Roland Gruber 2016-05-29 11:01:25 +02:00
parent 083f8de056
commit 146e5c4061
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ if [ ! -f /var/lib/%{lam_dir}/config/config.cfg ]; then
fi
fi
for server in apache2 httpd nginx; do
if [ `which systemctl` ]; then
if [ `which systemctl 2< /dev/null` ]; then
if [ "`systemctl is-active ${server}.service`" = "active" ]; then
systemctl reload ${server}.service
fi
@ -138,7 +138,7 @@ done
%postun
for server in apache2 httpd nginx; do
if [ `which systemctl` ]; then
if [ `which systemctl 2< /dev/null` ]; then
if [ "`systemctl is-active ${server}.service`" = "active" ]; then
systemctl reload ${server}.service
fi