From 04f6c53e759bdb014c71d78ef87e7440ba2d75e3 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 10 Oct 2017 15:59:06 -0400 Subject: [PATCH] scripts: Fix libvirt cleanup script from previous PR https://github.com/ceph/ceph-build/pull/884 Signed-off-by: David Galloway --- scripts/build_utils.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 06f71700..37d44a0e 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -436,8 +436,7 @@ clear_libvirt_networks() { restart_libvirt_services() { # restart libvirt services - get_distro_and_target - if [ "$DISTRO" == "rhel" ] || [ "$DISTRO" == "centos" ]; then + if test -f /etc/redhat-release; then sudo service libvirtd restart else sudo service libvirt-bin restart -- 2.47.3