Software /
code /
prosody
Changeset
2439:511ba389147a
prosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 10 Jan 2010 22:14:44 +0000 |
parents | 2438:819ba949c7bc |
children | 2440:11e3d16a128f |
files | prosodyctl |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Sun Jan 10 21:48:25 2010 +0000 +++ b/prosodyctl Sun Jan 10 22:14:44 2010 +0000 @@ -66,7 +66,7 @@ -- Switch away from root and into the prosody user -- local switched_user, current_uid; -local want_pposix_version = "0.3.1"; +local want_pposix_version = "0.3.2"; local ok, pposix = pcall(require, "util.pposix"); if ok and pposix then @@ -89,6 +89,9 @@ print("Warning: Couldn't switch to Prosody user/group '"..tostring(desired_user).."'/'"..tostring(desired_group).."': "..tostring(err)); end end + + -- Set our umask to protect data files + pposix.umask(config.get("*", "core", "umask") or "027"); 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");