2021-02-18 03:22:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# mynode-joinmarket
|
|
|
|
# This script needs to be run with sudo so it can run as the joinmarket user
|
|
|
|
|
2021-06-04 05:18:59 +00:00
|
|
|
source /usr/share/mynode/mynode_config.sh
|
2021-03-10 06:07:37 +00:00
|
|
|
|
2021-06-04 05:18:59 +00:00
|
|
|
if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then
|
|
|
|
sudo -u joinmarket bash -c "cd /home/joinmarket/joinmarket-clientserver; bash --rcfile <(echo '. ~/.bashrc; source ./jmvenv/bin/activate; cd scripts')"
|
|
|
|
else
|
|
|
|
echo "Joinmarket is currently only supported on RP4 and x86"
|
|
|
|
fi
|
2021-03-10 06:07:37 +00:00
|
|
|
#sudo su joinmarket
|
|
|
|
#cd ~/joinmarket-clientserver/
|
|
|
|
#source jmvenv/bin/activate
|
|
|
|
#cd scripts
|