mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-10 02:43:34 +02:00
allow registration using cli-specified private key (#534)
This commit is contained in:
@@ -328,6 +328,7 @@ init_system() {
|
|||||||
echo "Using private key ${PARAM_ACCOUNT_KEY} instead of account key"
|
echo "Using private key ${PARAM_ACCOUNT_KEY} instead of account key"
|
||||||
ACCOUNT_KEY="${PARAM_ACCOUNT_KEY}"
|
ACCOUNT_KEY="${PARAM_ACCOUNT_KEY}"
|
||||||
ACCOUNT_KEY_JSON="${PARAM_ACCOUNT_KEY}.json"
|
ACCOUNT_KEY_JSON="${PARAM_ACCOUNT_KEY}.json"
|
||||||
|
[ "${COMMAND:-}" = "register" ] && register_new_key="yes"
|
||||||
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)
|
||||||
if [[ ! -e "${ACCOUNT_KEY}" ]]; then
|
if [[ ! -e "${ACCOUNT_KEY}" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user