diff options
author | Guoshuai Li <ligs@dtdream.com> | 2016-12-22 17:52:36 +0800 |
---|---|---|
committer | Andy Zhou <azhou@ovn.org> | 2016-12-22 14:50:08 -0800 |
commit | ddf3352e03b409c3f5c16cbdb914e6453f36bebd (patch) | |
tree | f6d9e27c9a1f90870948a7540fd3d7cc20e6267a /rhel | |
parent | ae92b73c44fc27cd5add5dfcb0d8888d3360c2ed (diff) | |
download | openvswitch-ddf3352e03b409c3f5c16cbdb914e6453f36bebd.tar.gz |
OVN: Fix OCF symbolic link lost after ovn-common upgrade
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>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 6b2f91061..3499d6325 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -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} |