From 6861c25e4e46a9ee34f2f80ce468f846403046a1 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 16 Dec 2022 20:47:50 +0100 Subject: [PATCH] Tools: setup-unit: removed root checks. Reported-by: Liam Crilly Signed-off-by: Alejandro Colomar --- tools/setup-unit | 8 -------- 1 file changed, 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