prosodyctl: Fix later import of LuaFileSystem 0.11
authorKim Alvefur <zash@zash.se>
Sat, 11 Sep 2021 22:26:50 +0200
branch0.11
changeset 11813 49cfd3628d9d
parent 11755 a8c9a78c6a4b
child 11814 fe0cdbad19c3
prosodyctl: Fix later import of LuaFileSystem lfs or WHAT How did this even happen?
prosodyctl
--- a/prosodyctl	Tue Aug 31 12:58:38 2021 +0200
+++ b/prosodyctl	Sat Sep 11 22:26:50 2021 +0200
@@ -203,7 +203,7 @@
 	if prosody.installed and configmanager.get("*", "prosodyctl_service_warnings") ~= false then
 		show_warning("WARNING: Use of prosodyctl start/stop/restart/reload is not recommended");
 		show_warning("         if Prosody is managed by an init system - use that directly instead.");
-		lfs = lfs or require
+		lfs = lfs or require"lfs";
 		if lfs.attributes("/etc/systemd") then
 			show_warning("         e.g. systemctl %s prosody", service_command);
 		elseif lfs.attributes("/etc/init.d/prosody") then