netdata now sets its HOME variable #115
Costa Tsaousis (ktsaou) committed
Apr 27, 2016 at 11:13 UTC
cd12e1d22727553a66619971ec368589b6b95573
1 file changed
+1
src/main.c
+1
@@ -277,6 +277,7 @@ int main(int argc, char **argv)
277
setenv("NETDATA_CACHE_DIR" , config_get("global", "cache directory" , CACHE_DIR) , 1);
278
setenv("NETDATA_LOG_DIR" , config_get("global", "log directory" , LOG_DIR) , 1);
279
setenv("NETDATA_HOST_PREFIX", config_get("global", "host access prefix" , "") , 1);
280
+ setenv("HOME" , config_get("global", "home directory" , CACHE_DIR) , 1);
281
282
// avoid extended to stat(/etc/localtime)
283
// http://stackoverflow.com/questions/4554271/how-to-avoid-excessive-stat-etc-localtime-calls-in-strftime-on-linux