mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-22 08:18:27 +02: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 there is no existing certificate directory we need a new private key
|
||||||
if [ ! -e "certs/${domain}" ]; then
|
if [ ! -e "certs/${domain}" ]; then
|
||||||
mkdir "certs/${domain}"
|
mkdir -p "certs/${domain}"
|
||||||
echo " + Generating private key..."
|
echo " + Generating private key..."
|
||||||
openssl genrsa -out "certs/${domain}/privkey.pem" 4096 2> /dev/null > /dev/null
|
openssl genrsa -out "certs/${domain}/privkey.pem" 4096 2> /dev/null > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user