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