]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: Fix libvirt cleanup script from previous PR 885/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 10 Oct 2017 19:59:06 +0000 (15:59 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 10 Oct 2017 20:11:02 +0000 (16:11 -0400)
https://github.com/ceph/ceph-build/pull/884

Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/build_utils.sh

index 06f717000648e6f55c7d349fbd0dbdce87667e03..37d44a0ef344741833584e99d7d5b22fd5aafc04 100644 (file)
@@ -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