Skip to content

Commit 852eda5

Browse files
committed
use $HOME/.local/bin
1 parent 96fad3f commit 852eda5

14 files changed

+45
-25
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
# basicswap-bash
2-
A BasicSwapDEX bash installer for Debian/Ubuntu/Arch/Fedora
3-
User account must have sudo privileges
4-
5-
### Installation
2+
A suite of bash scripts to install and manage
3+
BasicSwapDEX on Windows(WSL)/Debian/Ubuntu/Arch/Fedora
64

5+
### New Installation
76
```bash
87
git clone https://github.com/nahuhh/basicswap-bash -b dev
98
cd basicswap-bash && ./install.sh
109
cd .. && rm -rf basicswap-bash
1110
```
12-
11+
### Update scripts from older versions
12+
``` bash
13+
cd ~/coinswaps/basicswap
14+
git clone https://github.com/nahuhh/basicswap-bash -b dev
15+
cd basicswap-bash
16+
mkdir -p $HOME/.local/bin
17+
rm -r $HOME/.local/bin/bsx
18+
mv -f basic* bsx* $HOME/.local/bin/
19+
cd .. && rm -rf basicswap-bash
20+
bsx-update
21+
```
1322

1423
### Running BasicSwapDEX
1524
```

basicswap-bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
export SWAP_DATADIR=$HOME/coinswaps
33
python3 -m venv "$SWAP_DATADIR/venv"
44
. $SWAP_DATADIR/venv/bin/activate && python -V
5-
/usr/local/bin/bsx/startup.sh
5+
$HOME/.local/bin/bsx/startup.sh

bsx-addcoin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ read -p 'Select an option [1|2]: ' l
3030
done
3131
export SWAP_DATADIR=$HOME/coinswaps
3232
. $SWAP_DATADIR/venv/bin/activate && python -V
33-
/usr/local/bin/bsx/addcoin.sh
33+
$HOME/.local/bin/bsx/addcoin.sh

bsx-disabletor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ read -p 'Select an option [1|2]: ' l
3030
done
3131
export SWAP_DATADIR=$HOME/coinswaps
3232
. $SWAP_DATADIR/venv/bin/activate && python -V
33-
/usr/local/bin/bsx/disabletor.sh
33+
$HOME/.local/bin/bsx/disabletor.sh

bsx-enabletor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ read -p 'Select an option [1|2]: ' l
3030
done
3131
export SWAP_DATADIR=$HOME/coinswaps
3232
. $SWAP_DATADIR/venv/bin/activate && python -V
33-
/usr/local/bin/bsx/enabletor.sh
33+
$HOME/.local/bin/bsx/enabletor.sh

bsx-removecoin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ read -p 'Select an option [1|2]: ' l
3030
done
3131
export SWAP_DATADIR=$HOME/coinswaps
3232
. $SWAP_DATADIR/venv/bin/activate && python -V
33-
/usr/local/bin/bsx/removecoin.sh
33+
$HOME/.local/bin/bsx/removecoin.sh

bsx-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
export SWAP_DATADIR=$HOME/coinswaps
33
. $SWAP_DATADIR/venv/bin/activate && python -V
4-
/usr/local/bin/bsx/update.sh
4+
$HOME/.local/bin/bsx/update.sh

bsx-upgrade-coins

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ read -p 'Select an option [1|2]: ' l
3030
done
3131
export SWAP_DATADIR=$HOME/coinswaps
3232
. $SWAP_DATADIR/venv/bin/activate && python -V
33-
/usr/local/bin/bsx/upgradecoins.sh
33+
$HOME/.local/bin/bsx/upgradecoins.sh

bsx/activate_venv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
. $SWAP_DATADIR/venv/bin/activate && python -V
33
if [[ $TAILS ]]; then
4-
/usr/local/bin/bsx/tails_setup.sh
4+
$HOME/.local/bin/bsx/tails_setup.sh
55
else
6-
/usr/local/bin/bsx/setup.sh
6+
$HOME/.local/bin/bsx/setup.sh
77
fi

bsx/enabletor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ else
4747
$INSTALL tor
4848
fi
4949

50-
# Create HashesControlPassword
50+
# Create HashedControlPassword
5151
echo -e "In the next step you'll choose a password. NOTE: It will be saved in PLAIN TEXT."
5252
read -p "Enter a (new) tor control password [example: 123123] " torcontrolpass
5353
# Edit /etc/tor/torrc

0 commit comments

Comments
 (0)