Files
root-scripts/create_new_cert.sh
2020-07-06 15:56:01 +02:00

10 lines
219 B
Bash
Executable File

#!/bin/bash
if [ $1 ]
then
systemctl stop nginx
/root/certbot/certbot-auto certonly --standalone --preferred-challenges http -d $1
systemctl start nginx
else
echo "Usage: create_new_cert.sh <newdomain.fqdn>"
fi