Merge pull request #35 from ej52/develop
fix: check if openresty repo exists else fallback to focal
This commit is contained in:
commit
14e141f602
@ -80,14 +80,16 @@ runcmd pip install --no-cache-dir cffi certbot
|
|||||||
|
|
||||||
# Install openresty
|
# Install openresty
|
||||||
log "Installing openresty"
|
log "Installing openresty"
|
||||||
runcmd wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -
|
wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -
|
||||||
echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/openresty.list
|
_distro_release=$(lsb_release -sc)
|
||||||
|
_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
|
runcmd apt-get update && apt-get install -y -q --no-install-recommends openresty
|
||||||
|
|
||||||
# Install nodejs
|
# Install nodejs
|
||||||
log "Installing nodejs"
|
log "Installing nodejs"
|
||||||
runcmd wget -O - https://deb.nodesource.com/setup_14.x | bash -
|
runcmd wget -O - https://deb.nodesource.com/setup_14.x | bash -
|
||||||
runcmd apt-get update && apt-get install -y -q --no-install-recommends nodejs
|
runcmd apt-get install -y -q --no-install-recommends nodejs
|
||||||
runcmd npm install --global yarn
|
runcmd npm install --global yarn
|
||||||
|
|
||||||
# Get latest version information for nginx-proxy-manager
|
# Get latest version information for nginx-proxy-manager
|
||||||
|
Loading…
Reference in New Issue
Block a user