Skip to content

Commit

Permalink
start: change user passswords first if standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Jan 3, 2021
1 parent 6269a7e commit e62d843
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/start.joininbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ if [ "$runningEnvEntry" -eq 0 ]; then
else
runningEnv="standalone"
setupStep=0
# set ssh passwords on the first run
sudo /home/joinmarket/set.password.sh || exit 1
sudo sed -i "s#setupStep=.*#setupStep=100#g" /home/joinmarket/joinin.conf
fi
echo "runningEnv=$runningEnv" >> /home/joinmarket/joinin.conf
echo "setupStep=$setupStep" >> /home/joinmarket/joinin.conf
Expand All @@ -49,6 +52,9 @@ if [ "$runningEnvEntry" -eq 0 ]; then

# connect to remote node
/home/joinmarket/menu.bitcoinrpc.sh
if [ "$1" -gt 0 ]; then
/home/joinmarket/menu.bitcoinrpc.sh
fi

# run config after install
/home/joinmarket/install.joinmarket.sh config
Expand All @@ -58,13 +64,7 @@ fi
source /home/joinmarket/_functions.sh
source /home/joinmarket/joinin.conf

if [ "$runningEnv" = "standalone" ]; then
if [ "$setupStep" = "0" ]; then
# set ssh passwords on the first run
sudo /home/joinmarket/set.password.sh || exit 1
sudo sed -i "s#setupStep=.*#setupStep=100#g" /home/joinmarket/joinin.conf
fi
elif [ "$runningEnv" = "raspiblitz" ]; then
if [ "$runningEnv" = "raspiblitz" ]; then

generateJMconfig

Expand Down

0 comments on commit e62d843

Please sign in to comment.