Software /
code /
prosody
Comparison
prosodyctl @ 5138:7dc57dfaebbe
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 | 5134:43c5227fdd3b |
child | 5139:0db82143ac00 |
comparison
equal
deleted
inserted
replaced
5137:df9665f3dfd8 | 5138:7dc57dfaebbe |
---|---|
159 end | 159 end |
160 end | 160 end |
161 | 161 |
162 -- Set our umask to protect data files | 162 -- Set our umask to protect data files |
163 pposix.umask(config.get("*", "core", "umask") or "027"); | 163 pposix.umask(config.get("*", "core", "umask") or "027"); |
164 pposix.setenv("HOME", data_path); | |
164 else | 165 else |
165 print("Error: Unable to load pposix module. Check that Prosody is installed correctly.") | 166 print("Error: Unable to load pposix module. Check that Prosody is installed correctly.") |
166 print("For more help send the below error to us through http://prosody.im/discuss"); | 167 print("For more help send the below error to us through http://prosody.im/discuss"); |
167 print(tostring(pposix)) | 168 print(tostring(pposix)) |
168 end | 169 end |