Skip to content

Commit

Permalink
Do not overwrite the env PROFILE_URL (#618)
Browse files Browse the repository at this point in the history
* Do not overwrite the env PROFILE_URL

* use variable expansion
  • Loading branch information
pablomendezroyo authored Apr 17, 2024
1 parent 1caa25b commit 632d317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/dappnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ DAPPNODE_PROFILE="${DAPPNODE_CORE_DIR}/.dappnode_profile"
# Get URLs
PROFILE_BRANCH=${PROFILE_BRANCH:-"master"}
IPFS_ENDPOINT=${IPFS_ENDPOINT:-"http://ipfs.io"}
PROFILE_URL="https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_profile.sh"
# PROFILE_URL env is used to fetch the core packages versions that will be used to build the release in script install method
PROFILE_URL=${PROFILE_URL:-"https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_profile.sh"}
DAPPNODE_ACCESS_CREDENTIALS="${DAPPNODE_DIR}/scripts/dappnode_access_credentials.sh"
DAPPNODE_ACCESS_CREDENTIALS_URL="https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_access_credentials.sh"
WGET="wget -q --show-progress --progress=bar:force"
Expand Down Expand Up @@ -105,7 +106,7 @@ if [[ -n "$STATIC_IP" ]]; then
fi
fi

# Load profile
# Loads profile, if not exists it means it is script install so the versions will be fetched from the latest profile
[ -f $DAPPNODE_PROFILE ] || ${WGET} -O ${DAPPNODE_PROFILE} ${PROFILE_URL}
# shellcheck disable=SC1090
source "${DAPPNODE_PROFILE}"
Expand Down

0 comments on commit 632d317

Please sign in to comment.