From d840235a9075471ee10d14e2e6b7a5c6c687995d Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 10 Feb 2024 21:56:05 +0100 Subject: [PATCH] Fixed Install Script --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 471adb5..334b833 100644 --- a/install.sh +++ b/install.sh @@ -26,9 +26,11 @@ installTheme(){ mv resources/scripts/components/server/console/Console.tsx /var/www/pterodactyl/resources/scripts/components/server/console/Console.tsx cd /var/www/pterodactyl - curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" apt update - apt install -y nodejs + nmv install node npm i -g yarn yarn