{"action":"created","issue":{"url":"https://api.github.com/repos/basho/node_package/issues/185","labels_url":"https://api.github.com/repos/basho/node_package/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/basho/node_package/issues/185/comments","events_url":"https://api.github.com/repos/basho/node_package/issues/185/events","html_url":"https://github.com/basho/node_package/pull/185","id":94622141,"number":185,"title":"Setting HOME env variable when unset due to downstream failures","user":{"login":"drewkerrigan","id":438879,"avatar_url":"https://avatars.githubusercontent.com/u/438879?v=3","gravatar_id":"","url":"https://api.github.com/users/drewkerrigan","html_url":"https://github.com/drewkerrigan","followers_url":"https://api.github.com/users/drewkerrigan/followers","following_url":"https://api.github.com/users/drewkerrigan/following{/other_user}","gists_url":"https://api.github.com/users/drewkerrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/drewkerrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewkerrigan/subscriptions","organizations_url":"https://api.github.com/users/drewkerrigan/orgs","repos_url":"https://api.github.com/users/drewkerrigan/repos","events_url":"https://api.github.com/users/drewkerrigan/events{/privacy}","received_events_url":"https://api.github.com/users/drewkerrigan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-13T02:17:27Z","updated_at":"2015-07-13T16:46:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/basho/node_package/pulls/185","html_url":"https://github.com/basho/node_package/pull/185","diff_url":"https://github.com/basho/node_package/pull/185.diff","patch_url":"https://github.com/basho/node_package/pull/185.patch"},"body":"Related issue here: https://github.com/basho/cuttlefish/issues/193\r\n\r\n\"erlexec requires the HOME variable to be set.\r\n\r\n```\r\nsargun@ubuntu:/tmp/mesos/slaves/20150712-141616-35725601-5050-4054-S0/frameworks/riak-mesos-go3/executors/test-cluster-c16260e2-21d0-44f3-9139-59b3b0a05948-2465/runs/latest$ unset HOME\r\nsargun@ubuntu:/tmp/mesos/slaves/20150712-141616-35725601-5050-4054-S0/frameworks/riak-mesos-go3/executors/test-cluster-c16260e2-21d0-44f3-9139-59b3b0a05948-2465/runs/latest/riak/bin$ ./riak config generate -l debug\r\nerlexec: HOME must be set\r\n```\r\n\r\nThe way that this manifests itself during normal Riak startups, if $HOME isn't set:\r\n\r\n```\r\n=====\r\n===== LOGGING STARTED Sun Jul 12 14:36:54 PDT 2015\r\n=====\r\nerlexec: HOME must be set\r\nError generating config with cuttlefish\r\n  run `riak config generate -l debug` for more information.\r\n```\r\n\r\nCan we automatically set $HOME, if it's not set already?\"\r\n\r\nI've addressed this with the following addition to `env.sh`:\r\n\r\n```\r\n# erlexec requires HOME to be set. The username needs to be a\r\n# unquoted literal because of the tilde expansion, hence the\r\n# usage of eval.\r\nif [ -z \"$HOME\" ]; then\r\n    export HOME=`eval echo \"~$WHOAMI\"`\r\nfi\r\n```"},"comment":{"url":"https://api.github.com/repos/basho/node_package/issues/comments/120990535","html_url":"https://github.com/basho/node_package/pull/185#issuecomment-120990535","issue_url":"https://api.github.com/repos/basho/node_package/issues/185","id":120990535,"user":{"login":"randysecrist","id":141339,"avatar_url":"https://avatars.githubusercontent.com/u/141339?v=3","gravatar_id":"","url":"https://api.github.com/users/randysecrist","html_url":"https://github.com/randysecrist","followers_url":"https://api.github.com/users/randysecrist/followers","following_url":"https://api.github.com/users/randysecrist/following{/other_user}","gists_url":"https://api.github.com/users/randysecrist/gists{/gist_id}","starred_url":"https://api.github.com/users/randysecrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randysecrist/subscriptions","organizations_url":"https://api.github.com/users/randysecrist/orgs","repos_url":"https://api.github.com/users/randysecrist/repos","events_url":"https://api.github.com/users/randysecrist/events{/privacy}","received_events_url":"https://api.github.com/users/randysecrist/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T16:46:14Z","updated_at":"2015-07-13T16:46:14Z","body":"@jonmeredith looks like WHOAMI is used in a few spots.  Are you thinking about comprehensive change, or just for the localized to the HOME var?"}}