Jerome Sautret
762486d199
Limit number of atoms used by ejabberdctl ( #2977 )
2020-04-02 15:51:16 +02:00
Evgeny Khramtsov
e3962aea6e
Use lager on OTP<22.0
...
This also lowers Erlang/OTP minimum version requirement back to 19.3
2019-10-25 11:44:04 +03:00
Evgeny Khramtsov
a23b6fb7ec
Don't parse obsoleted options
2019-10-19 12:14:02 +03:00
tv
c43037887a
ejabberdctl: fix parameter parsing
2018-04-25 00:41:30 +02:00
Holger Weiss
1b26c8d214
ejabberdctl: Omit redundant erl option
...
The "-detached" flag implies "-noinput".
2018-01-29 01:16:20 +01:00
Licaon_Kter
a0c8cac1b6
Fix typo /this/it/
2018-01-21 13:44:30 +00:00
Randy Barlow
12d9d97baa
Use /bin/sh as the explicit shell when using su in ejabberdctl.
...
Some distributions (such as Fedora) use /sbin/nologin as the login
shell for the ejabberd user. The newer version of ejabberdctl uses
su to perform the command if the INSTALLUSER invokes the script.
This commit adjusts the call to su so that it passes /bin/sh as
the shell to use so that it will work correctly when the ejabberd
user's shell is set to nologin.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2017-12-10 12:52:22 -05:00
Holger Weiss
74749f5dbb
ejabberdctl: Fix 'read' syntax for non-bash shells
2017-11-07 21:23:48 +01:00
Holger Weiss
5d5b4cdfb5
ejabberdctl: Fix paths for release build
...
The ejabberdctl version generated by "make rel" relies on the SCRIPT_DIR
variable which got lost in commit cbe6553baa
.
2017-11-06 21:35:44 +01:00
Christophe Romain
609a1d07cf
harden ejabberdctl ( #1977 )
2017-09-27 15:04:57 +02:00
Christophe Romain
cb076924cc
Merge pull request #1996 from nosnilmot/ejabberdctl-quote-peer
...
Quote $PEER in ping command to avoid hostnames containing "-" being interpreted as arithmetic
2017-09-18 13:09:16 +02:00
Christophe Romain
cce4056040
Fix iexdebug and iexlive commands ( #1981 )
2017-09-18 13:01:10 +02:00
Stu Tomlinson
2a7d9d93c8
Quote $PEER in ping command to avoid hostnames containing "-" being interpreted as arithmetic
2017-09-11 15:00:00 +01:00
Mathias Ertl
c658907331
fix typo
2017-08-08 19:09:55 +02:00
Mathias Ertl
aa9eb001d0
fix FIREWALL_WINDOW option
2017-08-04 18:49:33 +02:00
Christophe Romain
72dbb6e7c1
Fix errors when running ejabberdctl as root
2017-07-20 14:40:50 +02:00
Ashish SHUKLA
95613a11ab
Fix ERLANG_OPTS when setting INET_DIST_INTERFACE
2017-07-15 16:42:47 +05:30
Badlop
d4cdc3a246
Fix ERLANG_OPTS end lines when setting FIREWALL_WINDOW ( #1856 )
2017-07-12 14:43:28 +02:00
Christophe Romain
0f12804a49
Quote paths to allow spaces ( #1789 )
2017-06-28 11:39:05 +02:00
Christophe Romain
6c8b037422
Fix refactor bug on wait_status
2017-06-13 12:37:27 +02:00
Ivy Rogatko
0973a8d6c1
fixing iex bug with proper --name arguement
2017-06-07 21:15:17 -07:00
Christophe Romain
2a73068aac
Add missing space separator on EJABBERD_OPTS
2017-06-06 15:41:48 +02:00
Christophe Romain
12733bd21b
Fix EJABBERD_OPTS
2017-06-02 17:56:57 +02:00
Christophe Romain
de10a7a8ce
Respect INSTALLUSER when creating spool directory
2017-06-01 17:48:44 +02:00
Christophe Romain
5081a180fa
Create spool directory at start if not exists
2017-06-01 17:44:23 +02:00
Christophe Romain
a576f3a6d1
Remove use of getopt to support simpler shells
2017-06-01 12:10:06 +02:00
Christophe Romain
3201f8e513
Improve ejabberdctl parameters parsing
2017-06-01 11:48:11 +02:00
Christophe Romain
92003fa4dc
Minor ejabberdctl improvements
2017-06-01 08:04:11 +02:00
Christophe Romain
cbe6553baa
Refactor ejabberdctl
2017-05-31 18:11:45 +02:00
Johan Oudinet
404a7c3381
Remove bashismes from ejabberdctl
...
To avoid unecessary extra quoting, do not call commands with sh -c ''
and use the -- option from su to supply arguments.
Parse command line parameters is a bit tricky as the previous behavior
allows to mix options to ejabberdctl with unknown options given to
the next script (usually, the ctl). This is solved by relying on the
fact that for loop saves its argument, so we can flush its content
with set -- and re-add unknown options with set -- "$@" "$arg".
Finally, remove unecessary quotes in mnesia options and in the ping
command.
2016-11-21 15:25:58 +01:00
Christophe Romain
0b438d09d1
Fix typo from d8bb5d9c
2016-06-23 17:31:32 +02:00
Christophe Romain
6f2b0179e7
Give more time to stop and kill epmd ( #882 )
2016-06-17 17:09:45 +02:00
Holger Weiss
b202004862
ejabberdctl: Fix path to epmd
2016-05-01 21:29:59 +02:00
Christophe Romain
d8bb5d9c01
Force ERL_PATH for elixir
2016-04-27 12:32:01 +02:00
Christophe Romain
b79aef3bbc
SCRIPT_DIR needed for release
2016-04-25 15:26:23 +02:00
Christophe Romain
bae24464d3
Remove useless variable and quote EPMD and SPOOL_DIR
2016-04-25 14:26:04 +02:00
Christophe Romain
8487b51ecd
Fix node ping command
2016-04-21 12:16:21 +02:00
Christophe Romain
f7d4aae64d
Use UUID for ctl node name ( #1021 )
2016-04-21 12:00:51 +02:00
Christophe Romain
df4c551f06
Specify lacking nodename (thanks to hamano)( #1020 )
2016-03-24 10:21:51 +01:00
Christophe Romain
939bb244e1
Extend scope of ejabberdctl ping
2016-03-18 11:08:30 +01:00
Christophe Romain
f19a54e9a1
Escape quoting node name for ejabberdctl ping
2016-03-18 10:22:11 +01:00
Paweł Chmielowski
842d52352a
Fix escaping of argument in iexlive and iexdebug
2016-03-09 14:26:28 +01:00
Paweł Chmielowski
d40a091eda
Another fix for \n in ejabberdctl arguments
2016-02-15 15:21:27 +01:00
Paweł Chmielowski
47a67c7320
Allow to pass \n in argument to ejabberdctl
2016-02-12 23:38:39 +01:00
Holger Weiss
0125870f92
Merge remote-tracking branch 'processone/pr/907'
...
* processone/pr/907:
don't escape ERL_OPTIONS
2016-01-17 00:08:30 +01:00
HAMANO Tsukasa
b244bce49c
don't escape ERL_OPTIONS
2016-01-15 00:30:40 +09:00
Paweł Chmielowski
98bad73d56
Improve escaping of arguments passed to ejabberdctl
...
This fixes issue #804
2016-01-04 12:13:18 +01:00
Holger Weiss
fc013442bb
ejabberdctl: Call erl without -pa argument
...
The path to ejabberd's ebin directories is now specified by setting the
ERL_LIBS variable.
2016-01-03 23:35:41 +01:00
Paweł Chmielowski
7a69dab596
Add ability to disable timeout for ejabberdctl command
2015-12-08 11:25:26 +01:00
Christophe Romain
4480749a52
Merge branch 'cluster_fix'
2015-11-20 14:52:36 +01:00