Add domain name param to LE script

This commit is contained in:
Marcin Jachymiak 2020-01-31 14:06:43 -05:00
parent 2d9e26d67b
commit 043dc48ca4
1 changed files with 7 additions and 1 deletions

View File

@ -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