CLOUDSTACK-5520 CLOUDSTACK-5418 Script errors seen when trying to seed the 64 bit Xenserver templates.

This commit is contained in:
Rajesh Battala 2013-12-18 15:32:39 +05:30
parent 18fd0157a5
commit bd639bf145

View File

@ -174,7 +174,7 @@ isCifs() {
#then check if the template file is from cifs using df -P filename #then check if the template file is from cifs using df -P filename
#Currently only cifs is supported in hyperv zone. #Currently only cifs is supported in hyperv zone.
mount | grep "type cifs" > /dev/null mount | grep "type cifs" > /dev/null
return $? echo $?
} }
if [ "$tflag$nflag$fflag$sflag" != "1111" ] if [ "$tflag$nflag$fflag$sflag" != "1111" ]
@ -204,7 +204,7 @@ rollback_if_needed $tmpltfs $? "tar archives not supported\n"
if [ ${tmpltname%.vhd} != ${tmpltname} ] if [ ${tmpltname%.vhd} != ${tmpltname} ]
then then
if [ isCifs -ne 0 ] ; if [ $(isCifs) -ne 0 ] ;
then then
if which vhd-util &>/dev/null if which vhd-util &>/dev/null
then then