Commit d211fece authored by Simon Ruderich's avatar Simon Ruderich

use mkdir -p to create certs/$domain/

Prevents an error if running for the first time in a different
directory.
parent 00a0937c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment