Skip to content

Commit

Permalink
allow deployment script to run from the source of the repo (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd authored Nov 6, 2024
1 parent ae48247 commit 13d17a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/check_chain_loads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

USAGES_FILE="$(mktemp)"

# Make sure we're at the source of the repo.
cd "$(dirname "${BASH_SOURCE[0]}")/.."

grep -R '\<\(create_chain\|load_chain\|load_active_chain\)\>' linera-* > "$USAGES_FILE"

# linera-storage contains the implementation of the methods
Expand Down
5 changes: 3 additions & 2 deletions scripts/deploy-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -e

# Make sure we're at the source of the repo.
cd "$(dirname "${BASH_SOURCE[0]}")/.."

# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
Expand Down Expand Up @@ -51,8 +54,6 @@ GENESIS_URL="https://storage.googleapis.com/linera-io-dev-public/$FORMATTED_BRAN
VALIDATOR_CONFIG="docker/validator-config.toml"
GENESIS_CONFIG="docker/genesis.json"

cd ..

echo "Building Linera binaries"
cargo install --locked --path linera-service

Expand Down

0 comments on commit 13d17a6

Please sign in to comment.