Files
nginx-custom/make_cert

7 lines
194 B
Bash

#!/bin/bash
if [[ -z $1 ]]; then
echo "Die Domain darf nicht leer sein!"
else
letsencrypt certonly -d $1 --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
fi