spacewander commented on a change in pull request #3220:
URL: https://github.com/apache/apisix/pull/3220#discussion_r553781415
##########
File path: Makefile
##########
@@ -83,7 +83,9 @@ init: default
### run: Start the apisix server
.PHONY: run
run: default
-ifeq ("$(wildcard logs/nginx.pid)", "")
+ifeq ("$(findstring /root, ${PWD})", "/root")
+ @echo "Warning! It is forbidden to run APISIX in the /root directory."
Review comment:
It should be an error and exit with nonzero code, as APISIX won't be run.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]