mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Remove leftovers if a cert creation failed
This commit is contained in:
parent
45e41a992b
commit
582aa2425b
@ -26,6 +26,7 @@ new_key() {
|
||||
--crypt-secretkey-file="${STKEYS_DIR}/${ts}.key" \
|
||||
--provider-cert-file="${STKEYS_DIR}/${ts}.cert" \
|
||||
--cert-file-expire-days=1
|
||||
[ $? -ne 0 ] && rm -f "${STKEYS_DIR}/${ts}.key" "${STKEYS_DIR}/${ts}.cert"
|
||||
}
|
||||
|
||||
stkeys_files() {
|
||||
|
Loading…
Reference in New Issue
Block a user