Skip to content

Commit fefaadf

Browse files
committed
fix password file
1 parent 9ae9e6d commit fefaadf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎operator/entrypoint.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ post_pubkey_to_dappmanager() {
3737
echo "PUBLIC_KEY=${PUBLIC_KEY}"
3838
}
3939

40+
# Packages installed before 0.1.9 (Anchor 1.4.1) stored the password in password.txt
41+
# rename it so that it is backward-compatible
42+
if [ -f /root/keys/password.txt ]; then
43+
echo "[INFO - entrypoint] Renaming password.txt to private_key_password"
44+
mv -f /root/keys/password.txt "$PASSWORD_FILE_PATH"
45+
fi
46+
4047
# In Import Operator, save the EXISTING_PASSWORD to the password file at first import
4148
# Later when Anchor is starting it will use --password-file flag to decrypt the private key
4249
if [ "${SETUP_MODE}" = "Import Operator" ]; then

0 commit comments

Comments
 (0)