mirror of
https://github.com/logos-messaging/logos-messaging-nim-compose.git
synced 2026-01-04 06:53:08 +00:00
fix: don't exit if certificate is not generated (#116)
This commit is contained in:
parent
ef617ff0e1
commit
bfc5762335
@ -62,11 +62,8 @@ if [ -n "${DOMAIN}" ]; then
|
||||
fi
|
||||
|
||||
if ! [ -e "${LETSENCRYPT_PATH}/privkey.pem" ]; then
|
||||
echo "The certificate does not exist"
|
||||
sleep 60
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "The certificate does not exist. Proceeding without supporting websocket"
|
||||
else
|
||||
WS_SUPPORT="--websocket-support=true"
|
||||
WSS_SUPPORT="--websocket-secure-support=true"
|
||||
WSS_KEY="--websocket-secure-key-path=${LETSENCRYPT_PATH}/privkey.pem"
|
||||
@ -75,6 +72,7 @@ if [ -n "${DOMAIN}" ]; then
|
||||
|
||||
DNS_WSS_CMD="${WS_SUPPORT} ${WSS_SUPPORT} ${WSS_CERT} ${WSS_KEY} ${DNS4_DOMAIN}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${NODEKEY}" ]; then
|
||||
NODEKEY=--nodekey=${NODEKEY}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user