mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 11:39:21 +00:00
bsx-removecoin + fixes
This commit is contained in:
parent
011eb56027
commit
f7b0eb217a
5 changed files with 21 additions and 8 deletions
4
bsx-removecoin
Executable file
4
bsx-removecoin
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
export SWAP_DATADIR=$HOME/coinswaps
|
||||
. $SWAP_DATADIR/venv/bin/activate && python -V
|
||||
/usr/local/bin/bsx/disablecoin.sh
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Prompt for user input
|
||||
echo -e "\n\nThe following coins can be added (case sensitive)\nbitcoin\ndash\nfiro\nlitecoin\nparticl\nPIVX\n"
|
||||
echo -e "\n\nThe following coins can be added (case sensitive)\nbitcoin\ndash\nfiro\nlitecoin\nparticl\npivx\n"
|
||||
read -p 'Full name of coin to add [example: litecoin] ' addcoin
|
||||
## Confirm
|
||||
echo -e "\nAdd $addcoin to your BasicSwap install, correct? Press any key to continue. CTRL-C to exit"
|
||||
|
@ -16,13 +16,12 @@ if [ $addcoin = bitcoin ]; then
|
|||
esac
|
||||
|
||||
if [ $confirmed = yes ]; then
|
||||
echo using btcfastsync
|
||||
echo "Using btcfastsync"
|
||||
basicswap-prepare --usebtcfastsync --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||
else
|
||||
echo "not using btcfastsync"
|
||||
echo "Not using btcfastsync"
|
||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||
fi
|
||||
else
|
||||
echo "not using bitcoin, using $addcoin"
|
||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||
fi
|
||||
|
|
10
bsx/removecoin.sh
Executable file
10
bsx/removecoin.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Prompt for user input
|
||||
echo -e "\n\nThe following coins can be disabled (case sensitive)\nbitcoin\ndash\nfiro\nlitecoin\nparticl\nPIVX\n"
|
||||
read -p 'Full name of coin to disable [example: litecoin] ' disablecoin
|
||||
## Confirm
|
||||
echo -e "\nDisable $disablecoin on your BasicSwap install, correct? Press any key to continue. CTRL-C to exit"
|
||||
read
|
||||
## Disable the coin
|
||||
basicswap-prepare --datadir=/$SWAP_DATADIR --disablecoin=$disablecoin
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
## Prompt for user input
|
||||
echo "You can only update coins which you have already added to your install"
|
||||
echo -e "\n\nList of coins supported by BasicSwapDEX (case sensitive):\nbitcoin\ndash\nfiro\nlitecoin\nmonero\nparticl\nPIVX\n"
|
||||
echo -e "\n\nList of coins supported by BasicSwapDEX (case sensitive):\nbitcoin\ndash\nfiro\nlitecoin\nmonero\nparticl\npivx\n"
|
||||
read -p 'Full name of coin to update [example: litecoin] ' updatecoin
|
||||
|
||||
## Confirm
|
||||
read -p $'\nUpdating $updatecoin, correct? Press any key to continue. CTRL-C to exit'
|
||||
read -p $'\nUpdate $updatecoin, correct? Press any key to continue. CTRL-C to exit'
|
||||
|
||||
## Update the coin
|
||||
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=$updatecoin
|
||||
echo "updating $updatecoin"
|
||||
echo "Updated $updatecoin"
|
||||
|
|
|
@ -88,7 +88,7 @@ read -p 'Press Enter to continue, or CTRL-C to exit.'
|
|||
sudo apt update # python-is-python3 for ubuntu
|
||||
sudo apt install -y git wget python-is-python3 python3-venv python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config curl jq
|
||||
# Move scripts to /usr/local/bin
|
||||
sudo cp -r -f -t /usr/local/bin/ basicswap-bash bsx*
|
||||
sudo mv -f -t /usr/local/bin/ basicswap-bash bsx*
|
||||
## Make venv and set variables for install
|
||||
export SWAP_DATADIR=$HOME/coinswaps
|
||||
export monerod_addr=$monerod_addr
|
||||
|
|
Loading…
Reference in a new issue