reduce messages
This commit is contained in:
parent
083f8de056
commit
146e5c4061
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue