Comparison

prosodyctl @ 13653:e0bbf85edc21

prosodyctl: Fix check for whether to show init system warning Overlooked from testing.
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 15:43:23 +0000
parent 13651:b9d369f77121
child 13800:883d9d0ccd64
comparison
equal deleted inserted replaced
13652:a08065207ef0 13653:e0bbf85edc21
179 return "rc.d"; 179 return "rc.d";
180 end 180 end
181 end 181 end
182 182
183 local function service_command_warning(service_command) 183 local function service_command_warning(service_command)
184 if true or prosody.installed and configmanager.get("*", "prosodyctl_service_warnings") ~= false then 184 if prosody.installed and configmanager.get("*", "prosodyctl_service_warnings") ~= false then
185 show_warning("ERROR: Use of 'prosodyctl %s' is disabled in this installation because", service_command); 185 show_warning("ERROR: Use of 'prosodyctl %s' is disabled in this installation because", service_command);
186 186
187 local init = has_init_system() 187 local init = has_init_system()
188 if init then 188 if init then
189 show_warning(" we detected that this system uses %s for managing services.", init); 189 show_warning(" we detected that this system uses %s for managing services.", init);