root user doesn't need to be an incus admin

This commit is contained in:
selfhoster1312 2024-05-08 18:00:42 +02:00
parent 2d9a929aa1
commit 2e547075dc

View file

@ -183,7 +183,7 @@ function check_incus_setup()
if ! command -v incus &>/dev/null; then
critical "You need to have Incus installed for ynh-dev to be usable from the host machine. Refer to the README to know how to install it."
fi
if ! id -nG "$(whoami)" | grep -qw "incus-admin"; then
if ! id -nG "$(whoami)" | grep -qw "incus-admin" && [ ! $(id -u) -eq 0 ]; then
critical "You need to be in the incus-admin group!"
fi