allow registration using cli-specified private key (#534)

This commit is contained in:
Lukas Schauer
2018-04-13 21:34:11 +02:00
parent 0262997451
commit dff7d4ea35

View File

@@ -328,6 +328,7 @@ init_system() {
echo "Using private key ${PARAM_ACCOUNT_KEY} instead of account key"
ACCOUNT_KEY="${PARAM_ACCOUNT_KEY}"
ACCOUNT_KEY_JSON="${PARAM_ACCOUNT_KEY}.json"
[ "${COMMAND:-}" = "register" ] && register_new_key="yes"
else
# Check if private account key exists, if it doesn't exist yet generate a new one (rsa key)
if [[ ! -e "${ACCOUNT_KEY}" ]]; then