Skip to content

Commit

Permalink
feat: use direct tezos path
Browse files Browse the repository at this point in the history
  • Loading branch information
chiptus committed Feb 27, 2022
1 parent 7da67a3 commit 26a8189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion create_test_baker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ fi

account=$1

tezos-client activate account "$baker" with "./$account.json"
/opt/tezostezos-client activate account "$baker" with "./$account.json"
8 changes: 4 additions & 4 deletions import_ledger_baker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DATA_DIR=./out
function add_user_to_root() {
echo "adding user to root"

sudo adduser $user root
sudo adduser "$user" root
}


Expand All @@ -30,7 +30,7 @@ function apply_udev() {
function import_baker() {
echo "importing ledger public key - please approve in ledger"

ledger_output=$(tezos-client list connected ledgers)
ledger_output=$(/opt/tezos/tezos-client list connected ledgers)

if [ -z "$ledger_output" ]; then
echo "missing ledger output, please check your ledger and run again"
Expand All @@ -45,12 +45,12 @@ function import_baker() {
exit 1
fi

tezos-client import secret key $baker "$ledger_uri"
/opt/tezos/tezos-client import secret key "$baker" "$ledger_uri"
}

function setup_ledger_to_baker() {
echo "approve ledger for baking:"
tezos-client setup ledger to bake for "$baker"
/opt/tezos/tezos-client setup ledger to bake for "$baker"
}

step apply_udev "udev"
Expand Down

0 comments on commit 26a8189

Please sign in to comment.