aboutsummaryrefslogtreecommitdiff
path: root/xenserver
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-05-03 23:16:46 -0700
committerJustin Pettit <jpettit@nicira.com>2011-05-05 00:46:19 -0700
commit752f2093e1b1f591744f8084c90eac7073dfdb87 (patch)
treee6c6de55e49ba42d43f7d08e29e82b52f85a6f60 /xenserver
parentdaf2ebb30c2af023970172969366dea9ac787d7d (diff)
xenserver: Better document scriplet action in RPM spec file.
Diffstat (limited to 'xenserver')
-rw-r--r--xenserver/openvswitch-xen.spec8
1 files changed, 4 insertions, 4 deletions
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