mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 19:49: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
|
#!/bin/bash
|
||||||
|
|
||||||
## Prompt for user input
|
## 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
|
read -p 'Full name of coin to add [example: litecoin] ' addcoin
|
||||||
## Confirm
|
## Confirm
|
||||||
echo -e "\nAdd $addcoin to your BasicSwap install, correct? Press any key to continue. CTRL-C to exit"
|
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
|
esac
|
||||||
|
|
||||||
if [ $confirmed = yes ]; then
|
if [ $confirmed = yes ]; then
|
||||||
echo using btcfastsync
|
echo "Using btcfastsync"
|
||||||
basicswap-prepare --usebtcfastsync --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --usebtcfastsync --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||||
else
|
else
|
||||||
echo "not using btcfastsync"
|
echo "Not using btcfastsync"
|
||||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "not using bitcoin, using $addcoin"
|
|
||||||
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
basicswap-prepare --datadir=/$SWAP_DATADIR --addcoin=$addcoin
|
||||||
fi
|
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
|
## Prompt for user input
|
||||||
echo "You can only update coins which you have already added to your install"
|
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
|
read -p 'Full name of coin to update [example: litecoin] ' updatecoin
|
||||||
|
|
||||||
## Confirm
|
## 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
|
## Update the coin
|
||||||
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=$updatecoin
|
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 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
|
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
|
# 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
|
## Make venv and set variables for install
|
||||||
export SWAP_DATADIR=$HOME/coinswaps
|
export SWAP_DATADIR=$HOME/coinswaps
|
||||||
export monerod_addr=$monerod_addr
|
export monerod_addr=$monerod_addr
|
||||||
|
|
Loading…
Reference in a new issue