File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Mirror
5
5
RURIMA_LXC_MIRROR=images.linuxcontainers.org
6
-
6
+ RURIMA_LXC_MIRROR_FALLBACK=mirrors.tuna.tsinghua.edu.cn/lxc-images
7
7
# OS to install
8
8
# Make sure there is setup/${RURIMA_LXC_OS}.sh
9
9
RURIMA_LXC_OS=ubuntu
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ automatic() {
100
100
ui_print " - Downloading the root filesystem using the source ${RURIMA_LXC_MIRROR} ..."
101
101
102
102
rurima lxc pull -n -m ${RURIMA_LXC_MIRROR} -o ${RURIMA_LXC_OS} -v ${RURIMA_LXC_OS_VERSION} -s " $CONTAINER_DIR "
103
-
103
+ if [[ $? != 0 ]]; then
104
+ ui_print " - Download failed. Attempting to download the root filesystem using the fallback source ${RURIMA_LXC_MIRROR_FALLBACK} ..."
105
+ rurima lxc pull -n -m ${RURIMA_LXC_MIRROR_FALLBACK} -o ${RURIMA_LXC_OS} -v ${RURIMA_LXC_OS_VERSION} -s " $CONTAINER_DIR "
106
+ fi
104
107
ui_print " - Starting the chroot environment to perform automated installation..."
105
108
ui_print " - Please ensure the network environment is stable. The process may take some time, so please be patient!"
106
109
ui_print " "
You can’t perform that action at this time.
0 commit comments