From: Justin Pettit Date: Wed, 4 May 2011 06:16:46 +0000 (-0700) Subject: xenserver: Better document scriplet action in RPM spec file. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752f2093e1b1f591744f8084c90eac7073dfdb87;p=openvswitch xenserver: Better document scriplet action in RPM spec file. --- diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index de702add..7409fdfc 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -224,10 +224,10 @@ for s in openvswitch openvswitch-xapi-update; do chkconfig $s on || printf "Could not enable $s init script." done -if [ "$1" = "1" ]; then # $1 = 2 for upgrade +if [ "$1" = "1" ]; then # $1 = 1 for install # Configure system to use Open vSwitch xe-switch-network-backend vswitch -else +else # $1 = 2 for upgrade mode=$(cat /etc/xensource/network.conf) if [ "$mode" != "vswitch" ] && [ "$mode" != "openvswitch" ]; then @@ -247,7 +247,7 @@ fi depmod %{xen_version} %preun -if [ "$1" = "0" ]; then # $1 = 1 for upgrade +if [ "$1" = "0" ]; then # $1 = 0 for uninstall for s in openvswitch openvswitch-xapi-update; do chkconfig --del $s || printf "Could not remove $s init script." done @@ -285,7 +285,7 @@ do fi done -if [ "$1" = "0" ]; then # $1 = 1 for upgrade +if [ "$1" = "0" ]; then # $1 = 0 for uninstall rm -f /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyc \ /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyo