Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_full: Remove sign_req() subshell and do full cleanup #705

Merged
merged 1 commit into from Sep 23, 2022

Conversation

TinCanTech
Copy link
Collaborator

build-x-full uses a subshell to detect errors and cleanup the files if an error occurs. This does not work if Ctrl-C is pressed during the confirmation yes/no dialog.

Replace the subshell with an indicator, $on_error_build_full_cleanup, to force cleanup() to remove the CSR, key and certificate files when an error occurs or user presses Ctrl-C.

Closes: #680

Signed-off-by: Richard T Bonhomme tincantech@protonmail.com

build-x-full uses a subshell to detect errors and cleanup the files
if an error occurs.  This does not work if Ctrl-C is pressed during
the confirmation yes/no dialog.

Replace the subshell with an indicator, $on_error_build_full_cleanup,
to force cleanup() to remove the CSR, key and certificate files when
an error occurs or user presses Ctrl-C.

Closes: OpenVPN#680

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech TinCanTech self-assigned this Sep 23, 2022
@TinCanTech TinCanTech added this to the v3.1.1 - Release milestone Sep 23, 2022
@TinCanTech TinCanTech merged commit 6d00384 into OpenVPN:master Sep 23, 2022
@TinCanTech TinCanTech deleted the build-full-cleanup branch October 28, 2022 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build-x-full does not use temp files correctly
1 participant