summaryrefslogtreecommitdiffhomepage
path: root/tools (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-02Tools: setup-unit: disabled buggy behavior of zsh(1).Alejandro Colomar1-0/+3
Reported-by: Liam Crilly <liam@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-01-02Tools: setup-unit: workarounded macOS tmp file permissions.Alejandro Colomar1-1/+4
mktemp(1) in macOS uses a weird directory where only the running user has permissions. If we use that for the welcome website, unitd(8) won't be able to read the page. Use a directory at $HOME before trying a tmpdir. Reported-by: Liam Crilly <lcrilly@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-01-02Tools: setup-unit: removed root checks.Alejandro Colomar1-8/+0
Reported-by: Liam Crilly <lcrilly@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2022-12-19Tools: unitc avoid interactive rm(1) invocations.Liam Crilly1-3/+3
2022-12-16Tools: Fixed bug in help message.Alejandro Colomar1-1/+1
'sudo' was misplaced. Signed-off-by: Alejandro Colomar <alx@nginx.com>
2022-12-16Tools: Using HereDoc instead of echo(1).Alejandro Colomar1-5/+7
This prevents accidents, which are likely to happen especially with quotes. Signed-off-by: Alejandro Colomar <alx@nginx.com>
2022-12-16Tools: fixed quoting for apostrophe in setup-unit.Liam Crilly1-1/+1
2022-12-14Tools: Updated built-in 'setup-unit' help, README.md command lines.Artem Konev1-66/+63
2022-12-14Tools: Added subcommands to setup-unit.Alejandro Colomar1-211/+1400
This script combines the old setup-unit (as the repo-config command), with new functionality, to provide an easy welcome website for first-time users, and also some more commands that are useful for administrating a running unitd(8) instance. Suggested-by: Liam Crilly <liam@nginx.com> Cc: Konstantin Pavlov <thresh@nginx.com> Cc: Artem Konev <a.konev@f5.com> Cc: Timo Start <t.stark@nginx.com> Cc: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2022-12-14Tools: Added unitc.Liam Crilly2-0/+310
2022-12-03Added tools/README.md.Liam Crilly1-0/+16
2022-11-22Tools: Added setup-unit.Konstantin Pavlov1-0/+311
Downloaded from <https://unit.nginx.org/_downloads/setup-unit.sh>. Acked-by: Artem Konev <a.konev@f5.com> Acked-by: Konstantin Pavlov <thresh@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>