From 7a8e18e61ffa339bc50b79fdbf941af21d8de12b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Jun 2009 15:32:46 -0700 Subject: [PATCH] xenserver: Print better error messages when "xe" fails in RPM scripts. --- xenserver/vswitch-xen.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" -- 2.30.2