Changeset

8118:f8c52010bd37

prosodyctl: Return non-zero exit code from cert import if no certificates imported
author Kim Alvefur <zash@zash.se>
date Sat, 22 Apr 2017 19:12:04 +0200
parents 8117:66d8f6b3c3ef
children 8119:94a1fdaf12d1
files prosodyctl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Sat Apr 22 19:11:26 2017 +0200
+++ b/prosodyctl	Sat Apr 22 19:12:04 2017 +0200
@@ -896,6 +896,9 @@
 	end
 	if imported[1] then
 		show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
+	else
+		show_warning("No certificates imported :(");
+		return 1;
 	end
 end