From 74ba3824d03e163ef96a7214e5099aa606f5f47a Mon Sep 17 00:00:00 2001 From: Elton Renda Date: Mon, 26 Jul 2021 20:02:00 +0200 Subject: [PATCH] fix: fix ditro repo check --- lxc/nginx-proxy-manager/install/ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxc/nginx-proxy-manager/install/ubuntu.sh b/lxc/nginx-proxy-manager/install/ubuntu.sh index ae02024..81d3cc8 100644 --- a/lxc/nginx-proxy-manager/install/ubuntu.sh +++ b/lxc/nginx-proxy-manager/install/ubuntu.sh @@ -82,8 +82,8 @@ runcmd pip install --no-cache-dir cffi certbot log "Installing openresty" wget -O - https://openresty.org/package/pubkey.gpg | apt-key add - _distro_release=$(lsb_release -sc) -_distro_release=$(wget -t 1 -T 15 -q "http://openresty.org/package/ubuntu/dists/" -O - | grep -c "$_distro_release" || true) -echo "deb [trusted=yes] http://openresty.org/package/ubuntu ${_distro_repository:-focal} main" | tee /etc/apt/sources.list.d/openresty.list +_distro_release=$(wget $WGETOPT "http://openresty.org/package/ubuntu/dists/" -O - | grep -o "$_distro_release" | head -n1 || true) +echo "deb [trusted=yes] http://openresty.org/package/ubuntu ${_distro_release:-focal} main" | tee /etc/apt/sources.list.d/openresty.list runcmd apt-get update && apt-get install -y -q --no-install-recommends openresty # Install nodejs