mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-23 04:12:04 +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" \
|
--crypt-secretkey-file="${STKEYS_DIR}/${ts}.key" \
|
||||||
--provider-cert-file="${STKEYS_DIR}/${ts}.cert" \
|
--provider-cert-file="${STKEYS_DIR}/${ts}.cert" \
|
||||||
--cert-file-expire-days=1
|
--cert-file-expire-days=1
|
||||||
|
[ $? -ne 0 ] && rm -f "${STKEYS_DIR}/${ts}.key" "${STKEYS_DIR}/${ts}.cert"
|
||||||
}
|
}
|
||||||
|
|
||||||
stkeys_files() {
|
stkeys_files() {
|
||||||
|
Loading…
Reference in New Issue
Block a user