Skip to content

Commit

Permalink
OVN: Fix OCF symbolic link lost after ovn-common upgrade
Browse files Browse the repository at this point in the history
The directory "/usr/lib/ocf/resource.d/ovn/" can only be removed on
uninstall. It should not be removed when upgrading.

Signed-off-by: Guoshuai Li <ligs@dtdream.com>
Signed-off-by: Andy Zhou <azhou@ovn.org>
  • Loading branch information
Guoshuai Li authored and azhou-nicira committed Dec 22, 2016
1 parent ae92b73 commit ddf3352
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rhel/openvswitch-fedora.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ ln -sf %{_datadir}/openvswitch/scripts/ovndb-servers.ocf /usr/lib/ocf/resource.d
%endif

%postun ovn-common
rm -rf /usr/lib/ocf/resource.d/ovn
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
rm -rf /usr/lib/ocf/resource.d/ovn
fi

%postun ovn-central
%if 0%{?systemd_postun_with_restart:1}
Expand Down

0 comments on commit ddf3352

Please sign in to comment.