diff --git a/lam-packaging/RPM/ldap-account-manager.spec b/lam-packaging/RPM/ldap-account-manager.spec index edb25ccd..3eebac90 100644 --- a/lam-packaging/RPM/ldap-account-manager.spec +++ b/lam-packaging/RPM/ldap-account-manager.spec @@ -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