From bd639bf145b06436d326cd27a52dbac6cd69daa2 Mon Sep 17 00:00:00 2001 From: Rajesh Battala Date: Wed, 18 Dec 2013 15:32:39 +0530 Subject: [PATCH] CLOUDSTACK-5520 CLOUDSTACK-5418 Script errors seen when trying to seed the 64 bit Xenserver templates. --- scripts/storage/secondary/createtmplt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/storage/secondary/createtmplt.sh b/scripts/storage/secondary/createtmplt.sh index 05874b4be09..6b31232bc9e 100755 --- a/scripts/storage/secondary/createtmplt.sh +++ b/scripts/storage/secondary/createtmplt.sh @@ -174,7 +174,7 @@ isCifs() { #then check if the template file is from cifs using df -P filename #Currently only cifs is supported in hyperv zone. mount | grep "type cifs" > /dev/null - return $? + echo $? } if [ "$tflag$nflag$fflag$sflag" != "1111" ] @@ -204,7 +204,7 @@ rollback_if_needed $tmpltfs $? "tar archives not supported\n" if [ ${tmpltname%.vhd} != ${tmpltname} ] then - if [ isCifs -ne 0 ] ; + if [ $(isCifs) -ne 0 ] ; then if which vhd-util &>/dev/null then