- ## check if libvirt 1.0.2-1 is installed
- virsh -v | grep -e "1.0.3" || { echo "Libvirt 1.0.3 needs to be installed!!!" ; exit 1 ; }
-
+ ## check if libvirt_version is installed
+ virsh -v | grep -e $libvirt_version || { echo "$libvirt_version needs to be installed!!!" ; exit 1 ; }
# host_fcdistro="$(cat /etc/fedora-release | cut -d' ' -f3)"
# if [ ! -f /etc/yum.repos.d/libvirt.repo ] ; then
# touch /etc/yum.repos.d/libvirt.repo
# host_fcdistro="$(cat /etc/fedora-release | cut -d' ' -f3)"
# if [ ! -f /etc/yum.repos.d/libvirt.repo ] ; then
# touch /etc/yum.repos.d/libvirt.repo