Add LIBVIRT_DEFAULT_URI to profile.

This commit is contained in:
David Tomaschik
2021-11-14 15:22:40 -08:00
parent d213b3b234
commit 670cf5c8dc

View File

@@ -26,4 +26,12 @@ if [ "$(uname)" = "Darwin" ] ; then
export CLICOLOR export CLICOLOR
fi fi
# Setup for libvirt
if [ -z "${LIBVIRT_DEFAULT_URI}" ] ; then
if [ "$(id -u)" == "0" ] || (id -g -n | grep -q "\blibvirt\b") ; then
LIBVIRT_DEFAULT_URI="qemu:///system"
export LIBVIRT_DEFAULT_URI
fi
fi
test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local" test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local"