Update setup.sh

NPM v2.8.1 is the last version that used Alpine Linux, NPM > 2.9 is now using Debian which breaks setup
This commit is contained in:
Elton Renda 2021-05-11 09:01:18 +02:00 committed by GitHub
parent 877bc524c2
commit 14d04aeaf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,12 @@ if [ -f /etc/init.d/npm ]; then
fi
# Get latest version information for nginx-proxy-manager
_latest_release=$(wget "$_npm_url/releases/latest" -q -O - | grep -wo "jc21/.*.tar.gz")
_latest_version=$(basename $_latest_release .tar.gz)
_latest_version=${_latest_version#v*}
#_latest_release=$(wget "$_npm_url/releases/latest" -q -O - | grep -wo "jc21/.*.tar.gz")
#_latest_version=$(basename $_latest_release .tar.gz)
#_latest_version=${_latest_version#v*}
# 2.8.1 is the last version that used alpine linux
_latest_version=2.8.1
# Download nginx-proxy-manager source
info "Downloading NPM v$_latest_version..."