#!/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 " fi