Skip to content

Commit 6861c25

Browse files
Tools: setup-unit: removed root checks.
Reported-by: Liam Crilly <lcrilly@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
1 parent ab3d129 commit 6861c25

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tools/setup-unit

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,6 @@ unit_ctl_welcome()
557557
shift;
558558
done;
559559

560-
id -u \
561-
| xargs test 0 -ne \
562-
&& err 'welcome: This script requires root privileges to run.';
563-
564560
command -v curl >/dev/null \
565561
|| err 'welcome: curl(1) not found in PATH. It must be installed to run this script.';
566562

@@ -1179,10 +1175,6 @@ __EOF__";
11791175
command -v curl >/dev/null \
11801176
|| err 'repo-config: curl(1) not found in PATH. It must be installed to run this script.';
11811177

1182-
id -u \
1183-
| xargs test 0 -ne \
1184-
&& err 'repo-config: This script requires root privileges to run.';
1185-
11861178
echo 'This script sets up the NGINX Unit repository';
11871179

11881180
if ! test $# -ge 3; then

0 commit comments

Comments
 (0)