diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-01 04:54:23 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-01 04:54:23 +0100 |
commit | f31e73eb4857a08a82825a19e65a765d2848491b (patch) | |
tree | d52e9b6b8097ddc42cc9ae912b982a51195a6384 /prosodyctl | |
parent | 6d29dae97fd196145d982813aaa7a94b615a982c (diff) | |
parent | 066b90ccffc05ecc98df624c7b8a1a97ae526dc9 (diff) | |
download | prosody-f31e73eb4857a08a82825a19e65a765d2848491b.tar.gz prosody-f31e73eb4857a08a82825a19e65a765d2848491b.zip |
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -945,6 +945,9 @@ function commands.cert(arg) 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; |