[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-bundle/master] Bug 16866: the libvirtd group is called libvirt on Debian



commit e8839ca324ee90b3ca20e088f1b4ea6cdce24547
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Thu Aug 20 17:49:41 2015 +0200

    Bug 16866: the libvirtd group is called libvirt on Debian
---
 gitian/check-prerequisites.sh |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gitian/check-prerequisites.sh b/gitian/check-prerequisites.sh
index 93ac158..b36fca7 100755
--- a/gitian/check-prerequisites.sh
+++ b/gitian/check-prerequisites.sh
@@ -106,14 +106,20 @@ fi
 
 if [ "z$USE_LXC" != "z1" ];
 then
-  groups | grep libvirtd > /dev/null
+  if [ $DISTRO = "Debian" ];
+  then
+    libvirt_group=libvirt
+  else
+    libvirt_group=libvirtd
+  fi
+  groups | grep $libvirt_group > /dev/null
   if [ $? -ne 0 ];
   then
-    echo "You need to be in the libvirtd group to run Gitian."
+    echo "You need to be in the $libvirt_group group to run Gitian."
     echo
     echo "Please run:"
-    echo " sudo adduser $USER libvirtd"
-    echo " newgrp libvirtd"
+    echo " sudo adduser $USER $libvirt_group"
+    echo " newgrp $libvirt_group"
     exit 1
   fi
   if [ -z "$DISPLAY" ];

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits