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:
@@ -557,10 +557,6 @@ unit_ctl_welcome()
|
|||||||
shift;
|
shift;
|
||||||
done;
|
done;
|
||||||
|
|
||||||
id -u \
|
|
||||||
| xargs test 0 -ne \
|
|
||||||
&& err 'welcome: This script requires root privileges to run.';
|
|
||||||
|
|
||||||
command -v curl >/dev/null \
|
command -v curl >/dev/null \
|
||||||
|| err 'welcome: curl(1) not found in PATH. It must be installed to run this script.';
|
|| 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 \
|
command -v curl >/dev/null \
|
||||||
|| err 'repo-config: curl(1) not found in PATH. It must be installed to run this script.';
|
|| 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';
|
echo 'This script sets up the NGINX Unit repository';
|
||||||
|
|
||||||
if ! test $# -ge 3; then
|
if ! test $# -ge 3; then
|
||||||
|
|||||||
Reference in New Issue
Block a user