Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions operator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ post_pubkey_to_dappmanager() {
echo "PUBLIC_KEY=${PUBLIC_KEY}"
}

# Packages installed before 0.1.9 (Anchor 1.4.1) stored the password in password.txt
# rename it so that it is backward-compatible
if [ -f /root/keys/password.txt ]; then
echo "[INFO - entrypoint] Renaming password.txt to private_key_password"
mv -f /root/keys/password.txt "$PASSWORD_FILE_PATH"
fi

# In Import Operator, save the EXISTING_PASSWORD to the password file at first import
# Later when Anchor is starting it will use --password-file flag to decrypt the private key
if [ "${SETUP_MODE}" = "Import Operator" ]; then
Expand Down
Loading