use mkdir -p to create certs/$domain/

Prevents an error if running for the first time in a different
directory.
This commit is contained in:
Simon Ruderich
2015-12-05 18:36:34 +01:00
parent 00a0937c1f
commit d211fece4a
2 changed files with 1 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ sign_domain() {
# If there is no existing certificate directory we need a new private key
if [ ! -e "certs/${domain}" ]; then
mkdir "certs/${domain}"
mkdir -p "certs/${domain}"
echo " + Generating private key..."
openssl genrsa -out "certs/${domain}/privkey.pem" 4096 2> /dev/null > /dev/null
fi