diff options
author | Alejandro Colomar <alx@nginx.com> | 2022-12-16 20:47:50 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2023-01-02 22:44:18 +0100 |
commit | 6861c25e4e46a9ee34f2f80ce468f846403046a1 (patch) | |
tree | 342756f0968648854dca131bf6c547c759e4d371 | |
parent | ab3d1297af91bf8ade401ec4548d53f963788d14 (diff) | |
download | unit-6861c25e4e46a9ee34f2f80ce468f846403046a1.tar.gz unit-6861c25e4e46a9ee34f2f80ce468f846403046a1.tar.bz2 |
Tools: setup-unit: removed root checks.
Reported-by: Liam Crilly <lcrilly@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
-rwxr-xr-x | tools/setup-unit | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/setup-unit b/tools/setup-unit index f96bd499..a41b7f81 100755 --- a/tools/setup-unit +++ b/tools/setup-unit @@ -557,10 +557,6 @@ unit_ctl_welcome() shift; done; - id -u \ - | xargs test 0 -ne \ - && err 'welcome: This script requires root privileges to run.'; - command -v curl >/dev/null \ || err 'welcome: curl(1) not found in PATH. It must be installed to run this script.'; @@ -1179,10 +1175,6 @@ __EOF__"; command -v curl >/dev/null \ || err 'repo-config: curl(1) not found in PATH. It must be installed to run this script.'; - id -u \ - | xargs test 0 -ne \ - && err 'repo-config: This script requires root privileges to run.'; - echo 'This script sets up the NGINX Unit repository'; if ! test $# -ge 3; then |