aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.prosodyctl: Remove Lua 5.1 os.execute() return value compatKim Alvefur2022-10-201-2/+1
|
* util.prosodyctl: Install plugins for current Lua versionKim Alvefur2021-03-161-2/+2
| | | | | | | | Fixes that luarocks defaults to installing the rock for its own runtime version of Lua. This only works with luarocks 3.x, it does nothing on 2.x as currently available from Debian.
* util.prosodyctl: Remove unused calculation [luacheck]Kim Alvefur2021-01-211-1/+1
|
* util.prosodyctl: Rename unused variable to '_' [luacheck]Kim Alvefur2021-01-211-1/+1
|
* util.prosodyctl: Always return exit code from luarocksKim Alvefur2021-01-211-4/+1
| | | | os.exit(true) errors on Lua 5.1
* prosodyctl: Move UI related calls out of util.prosodyctlKim Alvefur2021-01-211-8/+0
| | | | | I think this follows the general separation of duties between prosodyctl and util.prosodyctl better.
* util.prosodyctl: Reword message to sound more naturalKim Alvefur2021-01-211-1/+1
| | | | | | | English is hard. "to" might also work, but we'll go with this for now. 18:32:11 <MattJ> s/at/in/ ? 18:32:19 <MattJ> to match luarocks :)
* util.prosodyctl: Propagate status from luarocks invocationKim Alvefur2021-01-211-1/+6
|
* util.prosodyctl: Use installer path prepared by util.startupKim Alvefur2021-01-211-10/+1
|
* util.prosodyctl: Simplify luarocks invocationKim Alvefur2020-10-051-7/+3
|
* util.prosodyctl: Move hardcoded luarocks server into prosodyctlKim Alvefur2020-10-051-2/+2
| | | | To be replaced with config option in future commit
* util.prosodyctl: Flip argument orderKim Alvefur2020-10-051-1/+1
| | | | | "verb subject" feels better than "subject verb", especially since the subject (module) is optional.
* util.prosodyctl: Construct luarocks command line with templatesKim Alvefur2020-10-051-2/+7
| | | | More flexible and safer wrt escaping
* prosodyctl+util.prosodyctl.*: Start breaking up the ever-growing prosodyctlMatthew Wild2020-06-021-93/+16
|
* util.prosodyctl: Pass command line flag to force daemonization on startKim Alvefur2020-01-261-2/+2
| | | | | | | Part of the deprecation of the 'daemonize' config option. Further, it is a bit weird to run `prosodyctl start` and get Prosody running in the foreground.
* util.prosodyctl: Silence luacheck warningsKim Alvefur2019-12-231-2/+2
|
* util.prosodyctl: Enforce strict JID validation on user creationKim Alvefur2019-11-011-1/+1
| | | | | | This is where 64ddcbc9a328 should have started. By preventing creation of users with invalid JIDs, it will slowly become safer to enforce strict validation on everything.
* util/prosodyctl: call_luarocks now sets a directory variable itselfJoão Duarte2019-08-161-1/+2
|
* util/prosodyctl: Removed the check_flags and execute_command functionJoão Duarte2019-08-161-25/+0
|
* util.prosodyctl: Changed a commentJoão Duarte2019-08-011-1/+1
|
* util.prosodyctl: The check_flags function now considers that a module, if ↵João Duarte2019-07-311-2/+2
| | | | given, is specified at the penultimate argument it receives
* util.prosodyctl: Added the execute_command functionJoão Duarte2019-07-311-0/+14
|
* util.prosodyctl: call_luarocks function is now compatible with the list commandJoão Duarte2019-07-311-1/+5
|
* util.prosodyctl: Function now differentiates its output, depending if it is ↵João Duarte2019-07-311-1/+7
| | | | being called by install or remove
* util.prosodyctl: Added the call_luarocks functionJoão Duarte2019-07-311-0/+7
|
* util.prosodyctl: Added the check_flags functionJoão Duarte2019-07-311-1/+12
|
* util.prosodyctl: Created the helper function get_path_custom_pluginsJoão Duarte2019-07-241-0/+9
|
* util.prosodyctl: Removed the admin_operation commandJoão Duarte2019-07-241-22/+0
|
* util.prosodyctl: Added the show_module_configuration_help functionJoão Duarte2019-07-231-0/+11
|
* util.prosodyctl: Corrected indentation on my codeJoão Duarte2019-07-201-18/+18
|
* util.prosodyctl: Added help support to 'admin_operation'João Duarte2019-06-271-0/+5
|
* util.prosodyctl: Moved the 'admin_operation' function from prosodyctl to hereJoão Duarte2019-06-251-0/+17
|
* util.prosodyctl: Allow passing path to Lua runtime to the start() functionKim Alvefur2019-01-101-3/+4
| | | | | By default the shebang is used. Being able to override it is useful in cases where the shebang does not match the configured runtime.
* util.prosodyctl: Rename variables for consistency (thanks Link Mauve)Kim Alvefur2018-06-061-2/+2
|
* prosodyctl, util.prosodyctl: Pass source path as a parameter instead of ↵Matthew Wild2018-03-221-5/+3
| | | | global variable
* util.prosodyctl: Fix getpass() for new return values of os.execute() in Lua 5.2Matthew Wild2018-03-201-1/+4
|
* util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency ↵Kim Alvefur2017-04-241-0/+2
| | | | with mod_posix)
* util.prosodyctl: Handle os.execute in Lua 5.2 returning true when command ↵Kim Alvefur2016-06-231-1/+1
| | | | terminates successfully
* util.prosodyctl: Remove unused variable [luacheck]Matthew Wild2016-03-101-1/+1
|
* net.websocket.frames, util.datetime, util.json, util.prosodyctl, ↵Matthew Wild2016-03-101-1/+1
| | | | util.rfc6724: Remove unused variables [luacheck]
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-34/+47
| | | | return them in a table at the end
* util.{interpolation,prosodyctl,sql}: Trim trailing whitespaceKim Alvefur2015-07-171-15/+15
|
* Merge 0.9->0.10Matthew Wild2014-08-281-14/+18
|\
| * prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwiseKim Alvefur2014-08-261-0/+4
| |
* | prosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by ↵Kim Alvefur2014-04-101-2/+2
| | | | | | | | default on posix platforms
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-15/+15
|/
* util.prosodyctl: Initialize storagemanager on the host before initializing ↵Matthew Wild2013-04-271-2/+4
| | | | usermanager. This fixes brokenness when the auth provider opens the store on load (as they all do since eeea0eb2602a) (thanks nulani)
* util.{prosodyctl,openssl}: More use of config sections removedKim Alvefur2013-03-231-2/+2
|
* util.prosodyctl: Use usermanager to delete users instead of unsetting their ↵Kim Alvefur2012-08-251-2/+2
| | | | password
* mod_admin_telnet, prosody, prosodyctl, ejabberd2prosody: Don't depend on ↵Florian Zeitz2012-06-091-0/+2
| | | | modules setting globals