Files
mines/rin/wallet/cmd/set_web_wallet.sh
2025-09-29 23:32:59 +03:00

31 lines
872 B
Bash

#!/bin/bash
# Script to set which wallet the web interface uses
# Usage: ./set_web_wallet.sh <wallet_name>
if [[ $# -ne 1 ]]; then
echo "Usage: $0 <wallet_name>"
echo "Example: $0 main"
echo "Example: $0 my-wall"
echo ""
echo "This sets the RIN_WALLET_NAME environment variable for the web wallet"
exit 1
fi
WALLET_NAME="$1"
echo "Setting web wallet to use: $WALLET_NAME"
echo ""
echo "To use this wallet with the web interface:"
echo "1. Stop the current web wallet (Ctrl+C)"
echo "2. Start it with:"
echo " RIN_WALLET_NAME=$WALLET_NAME ./rin/wallet/web/start_web_wallet.sh"
echo ""
echo "Or set it permanently in your environment:"
echo " export RIN_WALLET_NAME=$WALLET_NAME"
echo " ./rin/wallet/web/start_web_wallet.sh"
echo ""
echo "Current web wallet configuration:"
echo " Default wallet: main"
echo " New wallet: $WALLET_NAME"