Mercurial > prosody-hg
comparison util/prosodyctl/check.lua @ 13690:d112eac6a3dc 13.0
prosodyctl: check: Warn about deprecated mod_posix
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 13 Feb 2025 18:01:15 +0000 |
| parents | c71feb7686c0 |
| children | 5f1eb8b14923 |
comparison
equal
deleted
inserted
replaced
| 13689:6049c1602c79 | 13690:d112eac6a3dc |
|---|---|
| 630 if all_modules:contains("pep") and all_modules:contains("pep_simple") then | 630 if all_modules:contains("pep") and all_modules:contains("pep_simple") then |
| 631 print(""); | 631 print(""); |
| 632 print(" Both mod_pep_simple and mod_pep are enabled but they conflict"); | 632 print(" Both mod_pep_simple and mod_pep are enabled but they conflict"); |
| 633 print(" with each other. Remove one."); | 633 print(" with each other. Remove one."); |
| 634 end | 634 end |
| 635 if all_modules:contains("posix") then | |
| 636 print(""); | |
| 637 print(" mod_posix is loaded in your configuration file, but it has"); | |
| 638 print(" been deprecated. You can safely remove it."); | |
| 639 end | |
| 640 | |
| 635 for host, host_config in pairs(config) do --luacheck: ignore 213/host | 641 for host, host_config in pairs(config) do --luacheck: ignore 213/host |
| 636 if type(rawget(host_config, "storage")) == "string" and rawget(host_config, "default_storage") then | 642 if type(rawget(host_config, "storage")) == "string" and rawget(host_config, "default_storage") then |
| 637 print(""); | 643 print(""); |
| 638 print(" The 'default_storage' option is not needed if 'storage' is set to a string."); | 644 print(" The 'default_storage' option is not needed if 'storage' is set to a string."); |
| 639 break; | 645 break; |
