Software / code / prosody
Comparison
util/prosodyctl/check.lua @ 13841:d01cfbb7fc4f 13.0
prosodyctl check config: add recommendation to switch from admin_telnet to shell
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 10 Apr 2025 11:21:13 +0100 |
| parent | 13830:145b71d1283c |
| child | 13870:8078eebf5601 |
comparison
equal
deleted
inserted
replaced
| 13840:1b4f2d010141 | 13841:d01cfbb7fc4f |
|---|---|
| 640 end | 640 end |
| 641 if all_modules:contains("posix") then | 641 if all_modules:contains("posix") then |
| 642 print(""); | 642 print(""); |
| 643 print(" mod_posix is loaded in your configuration file, but it has"); | 643 print(" mod_posix is loaded in your configuration file, but it has"); |
| 644 print(" been deprecated. You can safely remove it."); | 644 print(" been deprecated. You can safely remove it."); |
| 645 end | |
| 646 if all_modules:contains("admin_telnet") then | |
| 647 print(""); | |
| 648 print(" mod_admin_telnet is being replaced by mod_admin_shell (prosodyctl shell)."); | |
| 649 print(" To update and ensure all commands are available, simply change \"admin_telnet\" to \"admin_shell\""); | |
| 650 print(" in your modules_enabled list."); | |
| 645 end | 651 end |
| 646 | 652 |
| 647 local load_failures = {}; | 653 local load_failures = {}; |
| 648 for mod_name in all_modules do | 654 for mod_name in all_modules do |
| 649 local mod, err = modulemanager.loader:load_resource(mod_name, nil); | 655 local mod, err = modulemanager.loader:load_resource(mod_name, nil); |