Add domain name param to LE script
This commit is contained in:
parent
2d9e26d67b
commit
043dc48ca4
|
@ -1,5 +1,11 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
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
|
sudo certbot renew --dry-run
|
||||||
|
|
Reference in New Issue