mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
root user doesn't need to be an incus admin
This commit is contained in:
parent
2d9a929aa1
commit
2e547075dc
1 changed files with 1 additions and 1 deletions
2
ynh-dev
2
ynh-dev
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue