aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
|
* Spelling: Fix various spelling mistakes (thanks timeless)Kim Alvefur2022-03-072-3/+3
| | | | | | Words, sometimes I wonder how they even work Maybe I missed something.
* tools: Allow processing instructions in some XML parsing toolsKim Alvefur2022-02-042-2/+2
| | | | IANA registry files have XSLT references, which are harmless to ignore.
* tools.dnsregistry: For converting IANA DNS registry data to Lua tableKim Alvefur2020-10-041-0/+43
|
* tools/xep227toprosody: Remove obsolete tool in favor of storage driverKim Alvefur2022-01-181-269/+0
| | | | | | | | | | This tool hasn't been updated for recent XEP-0227 changes, hasn't seen many changes at all since its introduction and I don't remember anyone mentioning ever using it. Using mod_storage_xmlarchive and the migrator or the 3rd party mod_migrate tool should work better these days and should be the way forward.
* migrator: Support pubsub and pep as a special-caseKim Alvefur2022-01-092-10/+25
| | | | | This sorta overloads the type suffix but PEP is used for enough stuff to justify this hack
* migrator: Enhance loggingKim Alvefur2022-01-091-4/+11
|
* migrator: Add option to keep going despite errorsKim Alvefur2022-01-091-0/+14
|
* migrator: Also migrate host/non-user archive dataKim Alvefur2022-01-091-3/+2
| | | | Needed for things like mod_http_file_share
* migrator: Refactor out individual item migrator for code deduplicationKim Alvefur2022-01-091-16/+18
|
* migrator: Include --options in usage infoKim Alvefur2022-01-091-1/+4
|
* migrator: Reuse earlier usage textKim Alvefur2022-01-091-3/+7
|
* migrator: Customise cli argument parsing (--help, --verbose)Kim Alvefur2022-01-091-1/+8
| | | | | Previously -v etc would do nothing and --config without argument would not have worked correctly.
* util.format: Ensure metatable __tostring results are also sanitizedKim Alvefur2021-12-131-1/+2
|
* tools/generate_format_spec: Apply lua-format to silence luacheckKim Alvefur2021-12-111-7/+9
|
* util.format: ALL THE TESTS!!!Kim Alvefur2021-12-111-0/+49
| | | | | | The more tests I made, the more Lua 5.1 quirks I discovered. Tests generated using a tool plus some touch-up.
* ejabberd2prosody.lua: fix MUC subject conversion with appropriate destructuringarcseconds2021-10-261-1/+2
|
* ejabberd2prosody: Don't import disabled or empty passwordsMatthew Wild2021-10-131-1/+3
|
* prosody2ejabberd: Check for iteration count at position 6Matthew Wild2021-10-071-1/+7
| | | | | In some data dumps, presumably from newer ejabberd versions, position 5 is the string "sha", and the iteration count follows it.
* ejabberd2prosody: Convert SCRAM iteration count to number (thanks arcseconds)Matthew Wild2021-10-071-1/+1
|
* migrator: Silence assert in core.moduleapiKim Alvefur2021-07-291-0/+4
| | | | | The assert triggers because we're not loading the stanza route, because we are unlikely to need it during migration.
* migrator: Use parsed command line flags already parsed by util.startupKim Alvefur2021-07-291-14/+1
|
* migrator: Trick net.server into thinking the config is loadedKim Alvefur2021-07-291-0/+1
| | | | Fixes "Loading outside Prosody or Prosody not yet initialized"
* migrator: Customise startup sequence to fix #1673 (Thanks acidsys)Kim Alvefur2021-07-291-2/+19
| | | | | | | | | | | | Diverge from util.startup.prosodyctl() in order to skip unneeded behavior, such as loading the *Prosody* config file, which we do not need here, based on the `--config` flag which should point at the migrator config file instead. Notably removed: * read_config() since this loads the Prosody config * check_unwriteable() which checks logfiles specified in the Prosody config, so not relevant * make_dummy_hosts() but the migrator sets up its own hosts during migration
* tools/jabberd14sql2prosody: Tweak wording in commentsKim Alvefur2021-07-131-2/+2
|
* tools/xep227toprosody: Tweak wording in commentsKim Alvefur2021-07-131-2/+2
|
* tools/cfgdump: Serialize individual (table) settings in stable order tooKim Alvefur2021-05-171-2/+9
|
* tools/cfgdump: Iterate in sort order to give stable outputKim Alvefur2021-05-171-5/+6
| | | | | Should allow using this tool for comparing configs without hash table order messing things up.
* tools.modtrace: Pass config to serialize()Matthew Wild2020-10-301-1/+8
|
* tools.modtrace: Library for tracing/debugging Lua module and method callsMatthew Wild2020-10-301-0/+152
|
* tools/form2table: Convert XEP-0004 dataform from XML to util.dataforms Lua ↵Kim Alvefur2020-10-281-0/+48
| | | | | | format Used this to generate code for a number of PubSub forms IIRC
* tools/linedebug: Print each line of source executedKim Alvefur2020-10-281-0/+18
| | | | | The extremely verbose debug output. Nice for getting some idea which code runs most often, or where it pauses for no reason etc.
* tools/cfgdump: Reads Prosody config file and pretty-prints it back outKim Alvefur2020-10-281-0/+120
| | | | | | | | | Useful for comparing what you think you have in your config with what Prosody sees, e.g. wrt (lack of) significance of indentation, order of options vs scope etc. (global options do not go at the end!) Could probably be turned into a prosodyctl command, especially if it learns to redact secrets and passwords.
* tools/tb2err: Formats Lua traceback in errors.err formatKim Alvefur2020-10-281-0/+21
| | | | | | | | | | | | Manually opening to the files and line numbers from a Lua traceback is tedious. This tool converts tracebacks into a format that many compilers and such tools use, which is also compatible with Vim (and possibly other editors). Thus if someone sends you a pastebin link with a traceback, a command like the following gets you right to the relevant lines: curl paste.example/abc123.txt | tb2err > errors.err; vim -q
* migrator: Don't create unused directoryKim Alvefur2020-04-191-1/+0
| | | | I guess this contained the old per-store migrators
* migrator: Inject data- and plugin paths during buildKim Alvefur2020-04-191-1/+3
| | | | Same way as with the prosody and prosodyctl executables
* make_repo.lua: Moved to /tools/make_repo.luaJoão Duarte2019-07-291-0/+44
|
* migrator: Add support for archives (fixes #651)Kim Alvefur2019-05-051-0/+6
|
* migrator: Rewrite to use storage modulesKim Alvefur2019-05-056-439/+142
| | | | | This allows migrating to and from any storage module that supports the right methods. Based on experimental mod_migrate work.
* tools: Add a tool to generate net.http.codes from IANA registryKim Alvefur2018-02-081-0/+43
|
* Merge 0.10->trunkKim Alvefur2017-04-101-6/+6
|\
| * SQL: Use standard quotes for columns and other identifiers, rewrite to grave ↵Kim Alvefur2017-04-101-6/+6
| | | | | | | | accents for MySQL only (fixes #885)
* | Merge 0.10->trunkKim Alvefur2017-04-091-1/+1
|\|
| * migration/prosody_sql: Commit transaction when all items have been processedKim Alvefur2017-04-081-1/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-04-082-80/+63
|\|
| * migrator/prosody_sql: Abort and demand database be upgraded if it needs to ↵Kim Alvefur2017-04-071-1/+32
| | | | | | | | be (#635)
| * migrator.prosody_sql: Switch to util.sql (#635)Kim Alvefur2017-04-071-73/+30
| |
| * migrator: Remove broken distinction between a load error or a missing ↵Kim Alvefur2017-04-071-7/+2
| | | | | | | | storage handler (worked with module()?)
* | Merge 0.10->trunkKim Alvefur2017-02-151-8/+7
|\|
| * migrator: Fix missing wordKim Alvefur2017-02-151-1/+1
| |