Code Review
/
kuberef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update check of libvirt(d) group
[kuberef.git]
/
functions.sh
diff --git
a/functions.sh
b/functions.sh
index
f0e1213
..
26db3c6
100755
(executable)
--- a/
functions.sh
+++ b/
functions.sh
@@
-74,7
+74,7
@@
check_prerequisites() {
if [ "${ID,,}" == "ubuntu" ] && [ "$VERSION_ID" == "16.04" ]; then
libvirt_group+="d"
fi
if [ "${ID,,}" == "ubuntu" ] && [ "$VERSION_ID" == "16.04" ]; then
libvirt_group+="d"
fi
- if ! groups | grep "
$libvirt_group
"; then
+ if ! groups | grep "
$libvirt_group
"; then
echo "ERROR : $(id -nu) user doesn't belong to $libvirt_group group."
exit 1
fi
echo "ERROR : $(id -nu) user doesn't belong to $libvirt_group group."
exit 1
fi