Skip to content

Commit cb84509

Browse files
committed
refactor: use compose command for ssl check
1 parent 0f3412c commit cb84509

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

deploy/deploy.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ cmd_setup() {
192192

193193
# SSL
194194
header "SSL Certificates"
195-
if docker run --rm -v "${COMPOSE_PROJECT}_certbot-certs:/certs" alpine \
196-
test -f "/certs/live/${DOMAIN}/fullchain.pem" 2>/dev/null; then
195+
if compose_with_ssl run --rm --entrypoint "test -f /etc/letsencrypt/live/${DOMAIN}/fullchain.pem" certbot 2>/dev/null; then
197196
info "SSL certificate already exists. Skipping."
198197
else
199198
warn "Provisioning SSL certificates..."

0 commit comments

Comments
 (0)