aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-01 04:54:23 +0100
committerKim Alvefur <zash@zash.se>2017-12-01 04:54:23 +0100
commita586b19dfd852b998d51f09ef4c3d90693f869ad (patch)
treed52e9b6b8097ddc42cc9ae912b982a51195a6384 /prosodyctl
parent64361b4894092d2e73742444c78d7f5deb4b172c (diff)
parent8e6092d58a22c88cd97c15b6cefe60de8a53d307 (diff)
downloadprosody-a586b19dfd852b998d51f09ef4c3d90693f869ad.tar.gz
prosody-a586b19dfd852b998d51f09ef4c3d90693f869ad.zip
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 02237082..947316a6 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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;