mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-07 12:17:18 +00:00
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> (cherry picked from commit c3e33e68d9785028d96be42162001d306c9b6915)
This commit is contained in:
parent
0f641de1be
commit
98afc745f1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user