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
commit41cdbb11597441a6544ff9003a1f1eee98fe6f15 (patch)
treea266c8e33bf4705470172c5829d2b13e4f9449f1
parentaf09884c6786ff8f4a9ad0485eb271644780d72f (diff)
downloadprosody-41cdbb11597441a6544ff9003a1f1eee98fe6f15.tar.gz
prosody-41cdbb11597441a6544ff9003a1f1eee98fe6f15.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 caa5d0cf..42c0a451 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");