mirror of
https://github.com/kunkundi/crossdesk-server.git
synced 2026-04-06 04:35:38 +08:00
[docker] regenerate certificates conditionally when the key or bundle file does not exist
This commit is contained in:
@@ -34,7 +34,7 @@ CERT_KEY="$CERT_DIR/crossdesk.cn.key"
|
||||
CERT_BUNDLE="$CERT_DIR/crossdesk.cn_bundle.crt"
|
||||
CERT_ROOT="$CERT_DIR/crossdesk.cn_root.crt"
|
||||
|
||||
if [ ! -f "$CERT_KEY" ] || [ ! -f "$CERT_BUNDLE" ] || [ ! -f "$CERT_ROOT" ]; then
|
||||
if [ ! -f "$CERT_KEY" ] || [ ! -f "$CERT_BUNDLE" ]; then
|
||||
echo "Certificate files not found, generating certificates..."
|
||||
mkdir -p "$CERT_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user