mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-13 18:39:48 +02:00
Merge pull request #44 from digint/bugfix_config_private_key
bugfix: keep configured PRIVATE_KEY
This commit is contained in:
@@ -119,7 +119,6 @@ init_system() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Check if private account key exists, if it doesn't exist yet generate a new one (rsa key)
|
# Check if private account key exists, if it doesn't exist yet generate a new one (rsa key)
|
||||||
PRIVATE_KEY="${BASEDIR}/private_key.pem"
|
|
||||||
if [[ ! -e "${PRIVATE_KEY}" ]]; then
|
if [[ ! -e "${PRIVATE_KEY}" ]]; then
|
||||||
echo "+ Generating account key..."
|
echo "+ Generating account key..."
|
||||||
_openssl genrsa -out "${PRIVATE_KEY}" "${KEYSIZE}"
|
_openssl genrsa -out "${PRIVATE_KEY}" "${KEYSIZE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user