Skip to content

Commit b34a449

Browse files
authored
Refactor Yarn installation into setup_nodejs
Removed Yarn installation check and integrated it into the setup_nodejs function.
1 parent 60be246 commit b34a449

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ct/nginxproxymanager.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ function update_script() {
2828
exit
2929
fi
3030

31-
if ! command -v yarn &>/dev/null; then
32-
msg_info "Installing Yarn"
33-
$STD npm install -g yarn
34-
msg_ok "Installed Yarn"
35-
fi
36-
31+
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
3732
export NODE_OPTIONS="--openssl-legacy-provider"
3833

3934
RELEASE=$(curl -fsSL https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |

0 commit comments

Comments
 (0)