Mirror option to set packages repo when building images
This commit is contained in:
parent
de97e32c36
commit
016ab6388f
|
@ -93,6 +93,9 @@ SSH_PORT=2222
|
||||||
# Whether sites are accessible only within a Tor browser
|
# Whether sites are accessible only within a Tor browser
|
||||||
ONION_ONLY="no"
|
ONION_ONLY="no"
|
||||||
|
|
||||||
|
# Where to fetch packages
|
||||||
|
MIRROR='http://httpredir.debian.org/debian'
|
||||||
|
|
||||||
mesh_router_setup_script() {
|
mesh_router_setup_script() {
|
||||||
# create a setup script for a mesh router
|
# create a setup script for a mesh router
|
||||||
mesh_script_filename=$1
|
mesh_script_filename=$1
|
||||||
|
@ -205,6 +208,10 @@ case $key in
|
||||||
shift
|
shift
|
||||||
PROJECT_REPO="$1"
|
PROJECT_REPO="$1"
|
||||||
;;
|
;;
|
||||||
|
-m|--mirror)
|
||||||
|
shift
|
||||||
|
MIRROR="$1"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# unknown option
|
# unknown option
|
||||||
;;
|
;;
|
||||||
|
@ -290,7 +297,9 @@ make $IMAGE_TYPE \
|
||||||
SSH_PORT="$SSH_PORT" \
|
SSH_PORT="$SSH_PORT" \
|
||||||
ONION_ONLY="$ONION_ONLY" \
|
ONION_ONLY="$ONION_ONLY" \
|
||||||
IMAGE_NAME="$IMAGE_NAME" \
|
IMAGE_NAME="$IMAGE_NAME" \
|
||||||
PROJECT_REPO="$PROJECT_REPO"
|
PROJECT_REPO="$PROJECT_REPO" \
|
||||||
|
MIRROR="$MIRROR" \
|
||||||
|
BUILD_MIRROR="$MIRROR"
|
||||||
|
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
echo $'Build failed'
|
echo $'Build failed'
|
||||||
|
|
Loading…
Reference in New Issue