Software /
code /
prosody
Comparison
prosodyctl @ 11809:49cfd3628d9d 0.11
prosodyctl: Fix later import of LuaFileSystem
lfs or WHAT
How did this even happen?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Sep 2021 22:26:50 +0200 |
parent | 11586:35e880501efd |
child | 11812:42e98179c034 |
comparison
equal
deleted
inserted
replaced
11751:a8c9a78c6a4b | 11809:49cfd3628d9d |
---|---|
201 | 201 |
202 local function service_command_warning(service_command) | 202 local function service_command_warning(service_command) |
203 if prosody.installed and configmanager.get("*", "prosodyctl_service_warnings") ~= false then | 203 if prosody.installed and configmanager.get("*", "prosodyctl_service_warnings") ~= false then |
204 show_warning("WARNING: Use of prosodyctl start/stop/restart/reload is not recommended"); | 204 show_warning("WARNING: Use of prosodyctl start/stop/restart/reload is not recommended"); |
205 show_warning(" if Prosody is managed by an init system - use that directly instead."); | 205 show_warning(" if Prosody is managed by an init system - use that directly instead."); |
206 lfs = lfs or require | 206 lfs = lfs or require"lfs"; |
207 if lfs.attributes("/etc/systemd") then | 207 if lfs.attributes("/etc/systemd") then |
208 show_warning(" e.g. systemctl %s prosody", service_command); | 208 show_warning(" e.g. systemctl %s prosody", service_command); |
209 elseif lfs.attributes("/etc/init.d/prosody") then | 209 elseif lfs.attributes("/etc/init.d/prosody") then |
210 show_warning(" e.g. /etc/init.d/prosody %s", service_command); | 210 show_warning(" e.g. /etc/init.d/prosody %s", service_command); |
211 end | 211 end |