diff --git a/Makefile b/Makefile index b3235eef5..09582709e 100644 --- a/Makefile +++ b/Makefile @@ -167,7 +167,7 @@ $(REL_PROFILES:%=%-rel) $(PKG_PROFILES:%=%-rel): $(COMMON_DEPS) .PHONY: $(REL_PROFILES:%=%-relup-downloads) define download-relup-packages $1-relup-downloads: - @if [ "$${EMQX_RELUP}" = "true" ]; then $(CURDIR)/scripts/relup-base-packages.sh $1; fi + @if [ "$${EMQX_RELUP}" = "true" ]; then $(CURDIR)/scripts/relup-build/download-base-packages.sh $1; fi endef ALL_ZIPS = $(REL_PROFILES) $(foreach zt,$(ALL_ZIPS),$(eval $(call download-relup-packages,$(zt)))) diff --git a/scripts/relup-base-packages.sh b/scripts/relup-build/download-base-packages.sh similarity index 96% rename from scripts/relup-base-packages.sh rename to scripts/relup-build/download-base-packages.sh index dddbc41b4..39c633395 100755 --- a/scripts/relup-base-packages.sh +++ b/scripts/relup-build/download-base-packages.sh @@ -6,7 +6,7 @@ if [[ -n "$DEBUG" ]]; then set -x; fi set -euo pipefail # ensure dir -cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.." +cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." ROOT_DIR="$(pwd)" PROFILE="${1:-emqx}"