Reload httpd configuration after removal. httpd restart on upgrade probably not needed.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 20:27:31 +0000 (22:27 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 20:37:32 +0000 (22:37 +0200)
rOCCI-server.spec

index ad1d395..b48b374 100644 (file)
@@ -232,8 +232,11 @@ if [ "$1" -ge "1" ] ; then # Upgrade
   semodule -i %{_datadir}/selinux/packages/%{name}/%{semodule_name}.pp 2>/dev/null || :
   restorecon -R %{app_root} %{_localstatedir}/log/rocci-server 2>/dev/null || :
 fi
-# rOCCI-server.target doesn't support restarting, use httpd instead
-%systemd_postun httpd.service
+if [ "$1" -lt "1" ] ; then # Final removal
+  # reload httpd needed
+  systemctl reload httpd.service >/dev/null 2>&1
+fi
+%systemd_postun
 
 
 %files