1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00
budibase/hosting/letsencrypt/certificate-renew.sh
2022-06-22 13:38:33 +01:00

13 lines
313 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