Tools: setup-unit: removed root checks.

Reported-by: Liam Crilly <lcrilly@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
This commit is contained in:
Alejandro Colomar
2022-12-16 20:47:50 +01:00
parent ab3d1297af
commit 6861c25e4e

View File

@@ -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