Skip to content

Commit 4042605

Browse files
committed
Handle http errors during downloads.
1 parent 9273be1 commit 4042605

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/nginx-proxy-manager/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ curl -sfL https://gobinaries.com/tj/node-prune | sh
6363

6464
log "Downloading Nginx Proxy Manager..."
6565
mkdir /tmp/nginx-proxy-manager
66-
curl -# -L ${NGINX_PROXY_MANAGER_URL} | tar xz --strip 1 -C /tmp/nginx-proxy-manager
66+
curl -# -L -f ${NGINX_PROXY_MANAGER_URL} | tar xz --strip 1 -C /tmp/nginx-proxy-manager
6767

6868
#
6969
# Compile

src/openresty/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ xx-apk --no-cache --no-scripts add \
6262

6363
log "Downloading OpenResty..."
6464
mkdir /tmp/openresty
65-
curl -# -L ${OPENRESTY_URL} | tar xz --strip 1 -C /tmp/openresty
65+
curl -# -L -f ${OPENRESTY_URL} | tar xz --strip 1 -C /tmp/openresty
6666

6767
log "Downloading GeoIP2 module..."
6868
mkdir /tmp/ngx_http_geoip2_module
69-
curl -# -L ${NGINX_HTTP_GEOIP2_MODULE_URL} | tar xz --strip 1 -C /tmp/ngx_http_geoip2_module
69+
curl -# -L -f ${NGINX_HTTP_GEOIP2_MODULE_URL} | tar xz --strip 1 -C /tmp/ngx_http_geoip2_module
7070

7171
log "Downloading libmaxminddb..."
7272
mkdir /tmp/libmaxminddb
73-
curl -# -L ${LIBMAXMINDDB_URL} | tar xz --strip 1 -C /tmp/libmaxminddb
73+
curl -# -L -f ${LIBMAXMINDDB_URL} | tar xz --strip 1 -C /tmp/libmaxminddb
7474

7575
#
7676
# Compile.
@@ -96,8 +96,8 @@ make DESTDIR=$(xx-info sysroot) -C /tmp/libmaxminddb install
9696
log "Patching OpenResty..."
9797
# Patch Nginx for cross-compile support. See the Yocto Nginx recipe: https://github.com/openembedded/meta-openembedded/tree/master/meta-webserver/recipes-httpd/nginx
9898
NGINX_SRC_DIR="$(find /tmp/openresty/bundle -mindepth 1 -maxdepth 1 -type d -name 'nginx-*')"
99-
curl -# -L https://github.com/openembedded/meta-openembedded/raw/master/meta-webserver/recipes-httpd/nginx/files/nginx-cross.patch | patch -p1 -d "$NGINX_SRC_DIR"
100-
curl -# -L https://github.com/openembedded/meta-openembedded/raw/master/meta-webserver/recipes-httpd/nginx/files/0001-Allow-the-overriding-of-the-endianness-via-the-confi.patch | patch -p1 -d "$NGINX_SRC_DIR"
99+
curl -# -L -f https://github.com/openembedded/meta-openembedded/raw/master/meta-webserver/recipes-httpd/nginx/files/nginx-cross.patch | patch -p1 -d "$NGINX_SRC_DIR"
100+
curl -# -L -f https://github.com/openembedded/meta-openembedded/raw/master/meta-webserver/recipes-httpd/nginx/files/0001-Allow-the-overriding-of-the-endianness-via-the-confi.patch | patch -p1 -d "$NGINX_SRC_DIR"
101101

102102
case "$(xx-info arch)" in
103103
amd64) PTRSIZE=8; ENDIANNESS=little ;;

0 commit comments

Comments
 (0)