When using sudo lein run (because some of the files changed by that command need priveleges) I get this message:
WARNING: You're currently running as root; probably by accident.
Press control-C to abort or Enter to continue as root.
Set LEIN_ROOT to disable this warning.
Any idea how or where to set LEIN_ROOT in order to avoid getting this message?
Add
LEIN_ROOT=trueto the end of/etc/profile. For this change to take effect, entersource /etc/profileto a terminal. Then run the command withsudo -E lein runto preserve environment variables. If you are doing this over ssh you would need to do all of the above on the server then addsource /etc/profileto the start of the ssh command run on the local machine.