Diff

prosodyctl @ 5149:b3e9b3576056

prosodyctl: Set $HOME to data path. Fixes issue with openssl and random state (Thanks Florob)
author Kim Alvefur <zash@zash.se>
date Wed, 19 Sep 2012 23:24:40 +0200
parent 5142:3221746f4769
child 5150:81b49bb0ecc7
line wrap: on
line diff
--- a/prosodyctl	Wed Sep 19 16:40:38 2012 +0200
+++ b/prosodyctl	Wed Sep 19 23:24:40 2012 +0200
@@ -161,6 +161,7 @@
 	
 	-- 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");