diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-01 03:13:26 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-01 03:13:49 -0500 |
commit | 41dc2844d67971b6e233d3a901b31443f34912b2 (patch) | |
tree | 7ca92c1d00955dfd159e7e2a577560a2fa9e56b6 /adelie-build-cd | |
parent | bb58b17d9c77b566045fb3d422fc934d2f3423e9 (diff) | |
download | image-41dc2844d67971b6e233d3a901b31443f34912b2.tar.gz image-41dc2844d67971b6e233d3a901b31443f34912b2.tar.bz2 image-41dc2844d67971b6e233d3a901b31443f34912b2.tar.xz image-41dc2844d67971b6e233d3a901b31443f34912b2.zip |
adelie-build-cd: Add MY_URL env var and document it
Diffstat (limited to 'adelie-build-cd')
-rwxr-xr-x | adelie-build-cd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adelie-build-cd b/adelie-build-cd index 56727c7..9d437e5 100755 --- a/adelie-build-cd +++ b/adelie-build-cd @@ -105,6 +105,7 @@ declare -r ARCH=${MY_ARCH:-$def_arch} declare -r LDARCH=${LDARCH:-$ARCH} declare -r PHASE=${MY_PHASE:-all} declare -r VERSION=${MY_VER:-$def_ver} +declare -r URL=${MY_URL:-https://distfiles.adelielinux.org/adelie/$VERSION/} set +a ensure_commands @@ -145,8 +146,8 @@ install_pkgs() { mkdir -p squashroot-$ARCH/usr/sbin cp addgroup adduser squashroot-$ARCH/usr/sbin/ apk --arch $ARCH \ - -X "https://distfiles.adelielinux.org/adelie/$VERSION/system/$EXTRA_MIRROR" \ - -X "https://distfiles.adelielinux.org/adelie/$VERSION/user/$EXTRA_MIRROR" \ + -X "$URL/system/$EXTRA_MIRROR" \ + -X "$URL/user/$EXTRA_MIRROR" \ -U --root squashroot-$ARCH --initdb add $PACKAGES $ARCH_PKGS } |