Kim Alvefur
57a971534d
util.prosodyctl: Remove unused calculation [luacheck]
5 years ago
Kim Alvefur
7665c764b5
util.prosodyctl: Rename unused variable to '_' [luacheck]
5 years ago
Kim Alvefur
d1ace000c7
util.prosodyctl: Always return exit code from luarocks
...
os.exit(true) errors on Lua 5.1
5 years ago
Kim Alvefur
bd62b3bce7
prosodyctl: Move UI related calls out of util.prosodyctl
...
I think this follows the general separation of duties between prosodyctl
and util.prosodyctl better.
5 years ago
Kim Alvefur
47c0ab5788
util.prosodyctl: Reword message to sound more natural
...
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 :)
5 years ago
Kim Alvefur
f3856b703d
util.prosodyctl: Propagate status from luarocks invocation
5 years ago
Kim Alvefur
50d9045de6
util.prosodyctl: Use installer path prepared by util.startup
5 years ago
Kim Alvefur
ef24d8cd72
util.prosodyctl: Simplify luarocks invocation
5 years ago
Kim Alvefur
28aadca557
util.prosodyctl: Move hardcoded luarocks server into prosodyctl
...
To be replaced with config option in future commit
5 years ago
Kim Alvefur
b74859e35c
util.prosodyctl: Flip argument order
...
"verb subject" feels better than "subject verb", especially since the
subject (module) is optional.
5 years ago
Kim Alvefur
3c0445e1b2
util.prosodyctl: Construct luarocks command line with templates
...
More flexible and safer wrt escaping
5 years ago
Kim Alvefur
375b817e8a
util.prosodyctl: Tell prosody do daemonize via command line flag ( fixes #1514 )
...
Backport of 88be11e9f9b9
6 years ago
Matthew Wild
46022b0988
prosodyctl+util.prosodyctl.*: Start breaking up the ever-growing prosodyctl
6 years ago
Kim Alvefur
a15d977f44
util.prosodyctl: Pass command line flag to force daemonization on start
...
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.
6 years ago
Kim Alvefur
14d66d8412
util.prosodyctl: Silence luacheck warnings
6 years ago
Kim Alvefur
45936787cb
util.prosodyctl: Enforce strict JID validation on user creation
...
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.
6 years ago
João Duarte
6ae5f04781
util/prosodyctl: call_luarocks now sets a directory variable itself
6 years ago
João Duarte
d323072816
util/prosodyctl: Removed the check_flags and execute_command function
6 years ago
João Duarte
ee4ae338f9
util.prosodyctl: Changed a comment
7 years ago
João Duarte
5aa4dda0fb
util.prosodyctl: The check_flags function now considers that a module, if given, is specified at the penultimate argument it receives
7 years ago
João Duarte
2049e20696
util.prosodyctl: Added the execute_command function
7 years ago
João Duarte
2b8e9031a4
util.prosodyctl: call_luarocks function is now compatible with the list command
7 years ago
João Duarte
289378113a
util.prosodyctl: Function now differentiates its output, depending if it is being called by install or remove
7 years ago
João Duarte
b60081c28c
util.prosodyctl: Added the call_luarocks function
7 years ago
João Duarte
d2524edff4
util.prosodyctl: Added the check_flags function
7 years ago
João Duarte
52f963350f
util.prosodyctl: Created the helper function get_path_custom_plugins
7 years ago
João Duarte
c84fa6fd26
util.prosodyctl: Removed the admin_operation command
7 years ago
João Duarte
94ddde2e9e
util.prosodyctl: Added the show_module_configuration_help function
7 years ago
João Duarte
c21b60857f
util.prosodyctl: Corrected indentation on my code
7 years ago
João Duarte
7555016ac2
util.prosodyctl: Added help support to 'admin_operation'
7 years ago
João Duarte
122bde2f2c
util.prosodyctl: Moved the 'admin_operation' function from prosodyctl to here
7 years ago
Kim Alvefur
a18da188f6
util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency with mod_posix)
9 years ago
Kim Alvefur
deff4bc96d
util.prosodyctl: Rename variables for consistency (thanks Link Mauve)
8 years ago
Matthew Wild
c0912560a4
prosodyctl, util.prosodyctl: Pass source path as a parameter instead of global variable
8 years ago
Matthew Wild
56a757fc5a
util.prosodyctl: Fix getpass() for new return values of os.execute() in Lua 5.2
8 years ago
Kim Alvefur
f7c083c86a
util.prosodyctl: Handle os.execute in Lua 5.2 returning true when command terminates successfully
10 years ago
Matthew Wild
0d16907ff3
util.prosodyctl: Remove unused variable [luacheck]
10 years ago
Matthew Wild
8967760df5
net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
10 years ago
Kim Alvefur
97ed1aed6c
util.{interpolation,prosodyctl,sql}: Trim trailing whitespace
11 years ago
Kim Alvefur
eaa823a597
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
11 years ago
Kim Alvefur
6af9beaccf
prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise
12 years ago
Kim Alvefur
5d027d7f71
prosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by default on posix platforms
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Matthew Wild
fbee5003f7
util.prosodyctl: Initialize storagemanager on the host before initializing usermanager. This fixes brokenness when the auth provider opens the store on load (as they all do since eeea0eb2602a) (thanks nulani)
13 years ago
Kim Alvefur
613c9b00c4
util.{prosodyctl,openssl}: More use of config sections removed
13 years ago
Kim Alvefur
febff04cfd
util.prosodyctl: Use usermanager to delete users instead of unsetting their password
14 years ago
Kim Alvefur
8d8c6bd619
util.prosodyctl: Allow passing path to Lua runtime to the start() function
...
By default the shebang is used. Being able to override it is useful in
cases where the shebang does not match the configured runtime.
7 years ago
Florian Zeitz
8eec297456
mod_admin_telnet, prosody, prosodyctl, ejabberd2prosody: Don't depend on modules setting globals
14 years ago
Matthew Wild
6448e03b74
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
14 years ago
Kim Alvefur
d75e3d56b5
util.prosodyctl: In the register command, check that the virtual exists before proceeding.
14 years ago