diff --git a/setup-scripts/letsencrypt-setup.sh b/setup-scripts/letsencrypt-setup.sh index 49487ae8..a6b8f030 100755 --- a/setup-scripts/letsencrypt-setup.sh +++ b/setup-scripts/letsencrypt-setup.sh @@ -1,5 +1,11 @@ #! /usr/bin/env bash set -e -sudo certbot --nginx -d siasky.net -d www.siasky.net +domain="$1" +if [[ -z $domain ]]; then + echo "Usage $0 DOMAIN_NAME" + exit 1 +fi + +sudo certbot --nginx -d "$domain" -d www."$domain" sudo certbot renew --dry-run