summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2022-12-16 20:47:50 +0100
committerAlejandro Colomar <alx@nginx.com>2023-01-02 22:44:18 +0100
commit6861c25e4e46a9ee34f2f80ce468f846403046a1 (patch)
tree342756f0968648854dca131bf6c547c759e4d371
parentab3d1297af91bf8ade401ec4548d53f963788d14 (diff)
downloadunit-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-xtools/setup-unit8
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