1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00
budibase/hosting/letsencrypt/certificate-renew.sh

14 lines
314 B
Bash
Raw Normal View History

2022-06-23 00:38:33 +12:00
#!/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
2022-06-23 01:38:45 +12:00
fi