Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5148:a0b8e5d03de2 | 5149:b3e9b3576056 |
---|---|
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 |