Skip to content

Commit

Permalink
Solve issue if wallet amount > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rykcod authored Sep 20, 2023
1 parent f329ac5 commit 8e4c73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/init_copy_host_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else
echo "[$(date +%Y%m%d-%HH%M)][INFO][INIT]Create your default config.toml with $myIP as routable IP" |& tee -a $PATH_LOGS_MASSAGUARD/$(date +%Y%m%d)-massa_guard.txt
fi
# Wallet to use
if [ -e $PATH_MOUNT/wallet_* ]
if [ $(ls $PATH_MOUNT/wallet_* 2>/dev/null | wc -l) -gt 0 ]
then
mkdir $PATH_CLIENT/wallets > /dev/null 2&>1
rm $PATH_CLIENT/wallets/wallet_* > /dev/null 2&>1
Expand All @@ -82,7 +82,7 @@ then
echo "[$(date +%Y%m%d-%HH%M)][INFO][LOAD]LOAD $PATH_MOUNT/node_privkey.key as ref" |& tee -a $PATH_LOGS_MASSAGUARD/$(date +%Y%m%d)-massa_guard.txt
fi
# Wallet to use to stacke
if [ -e $PATH_MOUNT/wallet_* ]
if [ $(ls $PATH_MOUNT/wallet_* 2>/dev/null | wc -l) -gt 0 ]
then
mkdir $PATH_NODE_CONF/staking_wallets > /dev/null 2&>1
rm $PATH_NODE_CONF/staking_wallets/wallet_* > /dev/null 2&>1
Expand Down

0 comments on commit 8e4c73f

Please sign in to comment.