1
0
Fork 0
mirror of synced 2024-06-01 18:20:18 +12:00
budibase/hosting/letsencrypt/certificate-renew.sh
2022-06-22 14:38:45 +01:00

14 lines
314 B
Bash

#!/bin/bash
CUSTOM_DOMAIN="$1"
if [[ ! -z "${CUSTOM_DOMAIN}" ]]; then
certbot certonly --webroot --webroot-path="/var/www/html" \
--register-unsafely-without-email \
--domains $CUSTOM_DOMAIN \
--rsa-key-size 4096 \
--agree-tos \
--force-renewal
nginx -s reload
fi