mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-27 19:41:09 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user