]> arthur.barton.de Git - netdata.git/commitdiff
netdata now sets its HOME variable #115
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 27 Apr 2016 08:13:46 +0000 (11:13 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 27 Apr 2016 08:13:46 +0000 (11:13 +0300)
src/main.c

index ba02371ff8948cbe1081165201ca3584b8c81a22..760ab641d47bc17ae5d99131ad06697ec992b3f9 100644 (file)
@@ -277,6 +277,7 @@ int main(int argc, char **argv)
        setenv("NETDATA_CACHE_DIR"  , config_get("global", "cache directory"    , CACHE_DIR)  , 1);
        setenv("NETDATA_LOG_DIR"    , config_get("global", "log directory"      , LOG_DIR)    , 1);
        setenv("NETDATA_HOST_PREFIX", config_get("global", "host access prefix" , "")         , 1);
+       setenv("HOME"               , config_get("global", "home directory"     , CACHE_DIR)  , 1);
 
        // avoid extended to stat(/etc/localtime)
        // http://stackoverflow.com/questions/4554271/how-to-avoid-excessive-stat-etc-localtime-calls-in-strftime-on-linux