bunkerweb/scripts/certbot-new.sh
2021-03-16 17:56:24 +01:00

10 lines
160 B
Bash

#!/bin/sh
# generate certificate
certbot certonly --webroot -w /acme-challenge -n -d "$1" --email "$2" --agree-tos
if [ "$?" -ne 0 ] ; then
exit 1
fi
exit 0