Skip to content

Commit 632d317

Browse files
Do not overwrite the env PROFILE_URL (#618)
* Do not overwrite the env PROFILE_URL * use variable expansion
1 parent 1caa25b commit 632d317

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎scripts/dappnode_install.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ DAPPNODE_PROFILE="${DAPPNODE_CORE_DIR}/.dappnode_profile"
1515
# Get URLs
1616
PROFILE_BRANCH=${PROFILE_BRANCH:-"master"}
1717
IPFS_ENDPOINT=${IPFS_ENDPOINT:-"http://ipfs.io"}
18-
PROFILE_URL="https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_profile.sh"
18+
# PROFILE_URL env is used to fetch the core packages versions that will be used to build the release in script install method
19+
PROFILE_URL=${PROFILE_URL:-"https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_profile.sh"}
1920
DAPPNODE_ACCESS_CREDENTIALS="${DAPPNODE_DIR}/scripts/dappnode_access_credentials.sh"
2021
DAPPNODE_ACCESS_CREDENTIALS_URL="https://github.com/dappnode/DAppNode/releases/latest/download/dappnode_access_credentials.sh"
2122
WGET="wget -q --show-progress --progress=bar:force"
@@ -105,7 +106,7 @@ if [[ -n "$STATIC_IP" ]]; then
105106
fi
106107
fi
107108

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

0 commit comments

Comments
 (0)