Solution might be as easy as calling init_system before doing the redirects, but I don't know the internals.
Originally created by @taam on GitHub (Apr 16, 2021).
`command_sign_csr` first does some IO redirection, then calls `init_system`, which might call `sudo`:
https://github.com/dehydrated-io/dehydrated/blob/5c1551e946456f534cf46b6ebabe4353bf0b0530/dehydrated#L1762-L1767
Solution might be as easy as calling `init_system` before doing the redirects, but I don't know the internals.
This will result in some informational messages being output to stdout as well, but that should be less of a problem as there was additional output before anyway and PEM format should ignore anything outside BEGIN/END blocks.
@lukas2511 commented on GitHub (Apr 16, 2021):
Thx. I swapped the lines as suggested.
This will result in some informational messages being output to stdout as well, but that should be less of a problem as there was additional output before anyway and PEM format should ignore anything outside BEGIN/END blocks.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @taam on GitHub (Apr 16, 2021).
command_sign_csrfirst does some IO redirection, then callsinit_system, which might callsudo:https://github.com/dehydrated-io/dehydrated/blob/5c1551e946456f534cf46b6ebabe4353bf0b0530/dehydrated#L1762-L1767
Solution might be as easy as calling
init_systembefore doing the redirects, but I don't know the internals.@lukas2511 commented on GitHub (Apr 16, 2021):
Thx. I swapped the lines as suggested.
This will result in some informational messages being output to stdout as well, but that should be less of a problem as there was additional output before anyway and PEM format should ignore anything outside BEGIN/END blocks.