diff options
author | Alejandro Colomar <alx@nginx.com> | 2023-06-21 13:39:40 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2023-06-30 14:35:59 +0200 |
commit | 543d478e12364b685aec5a903f6cd97fc75ad667 (patch) | |
tree | 58a29476a718d75a1f316abf4911bccb76214250 /src/nxt_websocket.h | |
parent | d73526d27ca296400fa8f08aa0a23b8ea3ab7a15 (diff) | |
download | unit-543d478e12364b685aec5a903f6cd97fc75ad667.tar.gz unit-543d478e12364b685aec5a903f6cd97fc75ad667.tar.bz2 |
Tools: setup-unit: ctl: added "edit" subcommand.
Almost equivalent to b42f6b1d ("Tools: unitc edit mode for interactive
configuration."), implemented by Liam in tools/unitc.
I chose to give preference to vi(1) over vim(1) because Debian has vi(1)
as part of update-alternatives(1), so that sysadmins can configure it to
be a symlink to their favourite vi(1) implementation or variant.
We're ignoring the errors of the commands due to having the SSH tunnel
open. I should fix the script to use traps to close the tunnel on any
error, so we don't leak tunnels. Then, we'll be able to not ignore
curl(1) or editor errors. That will also probably allow moving the
tunneling code to the ctl command, thus deduplicating code.
Cc: Liam Crilly <liam@nginx.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'src/nxt_websocket.h')
0 files changed, 0 insertions, 0 deletions