prosodyctl: Set $HOME to data path. Fixes issue with openssl and random state (Thanks...
authorKim Alvefur <zash@zash.se>
Wed, 19 Sep 2012 21:24:40 +0000 (23:24 +0200)
committerKim Alvefur <zash@zash.se>
Wed, 19 Sep 2012 21:24:40 +0000 (23:24 +0200)
prosodyctl

index d4aa6d5ef57e05aea1fc349c4aa551514b3ac650..52b734f729b86b6839c771127d40a48c59fea02d 100755 (executable)
@@ -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");