aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-09-19 23:24:40 +0200
committerKim Alvefur <zash@zash.se>2012-09-19 23:24:40 +0200
commit7fb2494cf60c63887facc9b327f5332967be6724 (patch)
tree6185188d8955e33e84355ba9d6484a686d11ef81
parentf9e4d051f25f3bcde3dd2252c3f59204f53dcbaf (diff)
downloadprosody-7fb2494cf60c63887facc9b327f5332967be6724.tar.gz
prosody-7fb2494cf60c63887facc9b327f5332967be6724.zip
prosodyctl: Set $HOME to data path. Fixes issue with openssl and random state (Thanks Florob)
-rwxr-xr-xprosodyctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index d4aa6d5e..52b734f7 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -161,6 +161,7 @@ if ok and pposix then
-- Set our umask to protect data files
pposix.umask(config.get("*", "core", "umask") or "027");
+ pposix.setenv("HOME", data_path);
else
print("Error: Unable to load pposix module. Check that Prosody is installed correctly.")
print("For more help send the below error to us through http://prosody.im/discuss");