Currently we only cleanup on exit. Let's trap SIGINT (ctrl-c) too, so we always cleanup everything. Otherwise if we ctrl-c is easy to leave something running, specially if we ctrl-c while the cleanup function is running. And when we leave something running and don't reused the certs ($REUSE_CERTS), that is the default, something is left running and it fails with weird ways as we can't auth with the new certs. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
46 KiB
Executable File
46 KiB
Executable File