mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-04 10:22:50 +00:00
Refactor Yarn installation into setup_nodejs
Removed Yarn installation check and integrated it into the setup_nodejs function.
This commit is contained in:
@@ -28,12 +28,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v yarn &>/dev/null; then
|
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||||
msg_info "Installing Yarn"
|
|
||||||
$STD npm install -g yarn
|
|
||||||
msg_ok "Installed Yarn"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export NODE_OPTIONS="--openssl-legacy-provider"
|
export NODE_OPTIONS="--openssl-legacy-provider"
|
||||||
|
|
||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |
|
RELEASE=$(curl -fsSL https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |
|
||||||
|
|||||||
Reference in New Issue
Block a user