Better to call systemd sriplet first when removing.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 19:07:16 +0000 (21:07 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 19:07:16 +0000 (21:07 +0200)
rOCCI-server.spec

index e744d9e..cafbdd7 100644 (file)
@@ -219,11 +219,11 @@ fi
 %systemd_post %{name}.target
 
 %preun
+%systemd_preun %{name}.target
 if [ "$1" -lt "1" ] ; then # Final removal
   semodule -r %{semodule_name} 2>/dev/null || :
   semanage port -d -t http_port_t -p tcp 11443 2>/dev/null || :
 fi
-%systemd_preun %{name}.target
 
 %postun
 if [ "$1" -ge "1" ] ; then # Upgrade