Software /
code /
prosody
Diff
prosodyctl @ 8440:4e6710b4f873
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Dec 2017 04:54:23 +0100 |
parent | 8285:433b2a41351f |
parent | 8419:57610304e30d |
child | 8561:7b9ffddc4276 |
line wrap: on
line diff
--- a/prosodyctl Fri Dec 01 03:13:52 2017 +0100 +++ b/prosodyctl Fri Dec 01 04:54:23 2017 +0100 @@ -945,6 +945,9 @@ if pposix.getuid() ~= cert_dir_attrs.uid then show_warning("The directory "..cert_basedir.." is not owned by the current user, won't be able to write files to it"); return 1; + elseif not cert_dir_attrs.permissions then -- COMPAT with LuaFilesystem < 1.6.2 (hey CentOS!) + show_message("Unable to check permissions on "..cert_basedir.." (LuaFilesystem 1.6.2+ required)"); + show_message("Please confirm that Prosody (and only Prosody) can write to this directory)"); elseif cert_dir_attrs.permissions:match("^%.w..%-..%-.$") then show_warning("The directory "..cert_basedir.." not only writable by its owner"); return 1;