Check for sudo before using it in upgrade.sh #130

Closed
opened 2025-12-29 15:34:42 +01:00 by adam · 0 comments
Owner

Originally created by @Zmegolaz on GitHub (Jul 1, 2016).

I don't have sudo installed on my server, so upgrade.sh fail. It'd be great for a check before it's used. Possibly also check if the user already is root, depending on what privileges pip actually need.

./upgrade.sh: line 10: sudo: command not found
Line 10 is:
sudo pip install -r requirements.txt --upgrade
Originally created by @Zmegolaz on GitHub (Jul 1, 2016). I don't have sudo installed on my server, so upgrade.sh fail. It'd be great for a check before it's used. Possibly also check if the user already is root, depending on what privileges pip actually need. ``` ./upgrade.sh: line 10: sudo: command not found Line 10 is: sudo pip install -r requirements.txt --upgrade ```
adam added the type: bug label 2025-12-29 15:34:42 +01:00
adam closed this issue 2025-12-29 15:34:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#130