joininbox: configure joinmarket after install

#2747
This commit is contained in:
openoms
2022-01-05 11:21:06 +00:00
parent 1c9e96b033
commit f524dab1d7

View File

@@ -124,7 +124,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo "AllowOutboundLocalhost 1" | sudo tee -a /etc/tor/torsocks.conf echo "AllowOutboundLocalhost 1" | sudo tee -a /etc/tor/torsocks.conf
sudo systemctl reload tor@default sudo systemctl reload tor@default
fi fi
# joinin.conf settings # joinin.conf settings
sudo -u joinmarket touch /home/joinmarket/joinin.conf sudo -u joinmarket touch /home/joinmarket/joinin.conf
# add default Tor value to joinin.conf if needed # add default Tor value to joinin.conf if needed
@@ -135,6 +134,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
if grep -Eq "^runBehindTor=on" /mnt/hdd/raspiblitz.conf; then if grep -Eq "^runBehindTor=on" /mnt/hdd/raspiblitz.conf; then
sudo -u joinmarket sed -i "s/^runBehindTor=.*/runBehindTor=on/g" /home/joinmarket/joinin.conf sudo -u joinmarket sed -i "s/^runBehindTor=.*/runBehindTor=on/g" /home/joinmarket/joinin.conf
fi fi
echo echo
echo "##########" echo "##########"
echo "# Extras #" echo "# Extras #"
@@ -167,10 +167,11 @@ if [ -z \"\$TMUX\" ]; then
fi fi
" | sudo -u joinmarket tee -a /home/joinmarket/.bashrc " | sudo -u joinmarket tee -a /home/joinmarket/.bashrc
echo "######################" echo "##############################################"
echo "# Install JoinMarket #" echo "# Install JoinMarket and configure JoininBox #"
echo "######################" echo "##############################################"
sudo -u joinmarket /home/joinmarket/install.joinmarket.sh install echo
sudo -u joinmarket /home/joinmarket/start.joininbox.sh
else else
echo "JoinMarket is already installed" echo "JoinMarket is already installed"