Skip to content

Commit

Permalink
Do not overwrite the env PROFILE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Apr 17, 2024
1 parent 6559db3 commit 2f82ecd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/dappnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ 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
if [ -z "${PROFILE_URL}" ]; then
PROFILE_URL="https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_profile.sh"
fi
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 +108,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 2f82ecd

Please sign in to comment.