__netbox: auto-install sudo as dependency

There are may be systems does not have `sudo` preinstalled like
debian-minimal. Else, `su` could be used as alternative.
This commit is contained in:
matze 2020-08-22 20:55:35 +02:00
parent 9fb3c7f52e
commit ee3db10ecf

View file

@ -6,7 +6,7 @@ case "$os" in
debian|ubuntu)
# Install netbox dependencies.
for pkg in python3-pip python3-venv python3-dev build-essential libxml2-dev \
libxslt1-dev libffi-dev libpq-dev libssl-dev zlib1g-dev curl virtualenv; do
libxslt1-dev libffi-dev libpq-dev libssl-dev zlib1g-dev curl virtualenv sudo; do
__package $pkg
done