From: Ben Pfaff Date: Thu, 4 Jun 2009 22:32:46 +0000 (-0700) Subject: xenserver: Print better error messages when "xe" fails in RPM scripts. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a8e18e61ffa339bc50b79fdbf941af21d8de12b;p=openvswitch xenserver: Print better error messages when "xe" fails in RPM scripts. --- diff --git a/xenserver/vswitch-xen.spec b/xenserver/vswitch-xen.spec index b2e5ec18..58e35dec 100644 --- a/xenserver/vswitch-xen.spec +++ b/xenserver/vswitch-xen.spec @@ -165,7 +165,8 @@ fi source /etc/xensource-inventory xe host-param-set \ - "other-config:vSwitchVersion=%{version}" uuid="$INSTALLATION_UUID" + "other-config:vSwitchVersion=%{version}" uuid="$INSTALLATION_UUID" || + echo "Could not set vSwitchVersion config parameter" # Ensure ovs-vswitchd.conf exists touch /etc/ovs-vswitchd.conf @@ -262,7 +263,8 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade source /etc/xensource-inventory xe host-param-remove \ param-name=other-config param-key=vSwitchVersion \ - uuid="$INSTALLATION_UUID" + uuid="$INSTALLATION_UUID" || + echo "Could not clear vSwitchVersion config parameter." fi printf "\nYou MUST reboot the server now to complete the change to\n"