#!/bin/bash # Script to set which wallet the web interface uses # Usage: ./set_web_wallet.sh if [[ $# -ne 1 ]]; then echo "Usage: $0 " 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"