sanlock: add missing test command in virt-sanlock-cleanup.in

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=949483

Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
Alex Jia 2013-04-08 17:41:50 +08:00
parent 396c4d34f8
commit c3e33e68d9

View File

@ -11,7 +11,7 @@ fi
LOCKSPACE="__LIBVIRT__DISKS__"
LOCKDIR=`augtool print '/files@sysconfdir@/libvirt/qemu-sanlock.conf/disk_lease_dir'`
if test $? != 0 || "x$LOCKDIR" = "x" ; then
if test $? != 0 || test "x$LOCKDIR" = "x" ; then
LOCKDIR="@localstatedir@/lib/libvirt/sanlock"
fi