Reference here: https://www.cnblogs.com/zhongshiqiang/p/10839666.html
Use sudo -E to retain the current user environment, then there would not be a problem can not find the environment variable.
Reference here: https://www.cnblogs.com/zhongshiqiang/p/10839666.html
Use sudo -E to retain the current user environment, then there would not be a problem can not find the environment variable.