Fixed InstallTheme
This commit is contained in:
parent
3ec7b4969e
commit
1b2660b4f0
19
install.sh
19
install.sh
@ -27,21 +27,26 @@ installTheme(){
|
|||||||
cd /var/www/pterodactyl
|
cd /var/www/pterodactyl
|
||||||
|
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | sudo -E bash -
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | sudo -E bash -
|
||||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
apt update
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||||
nmv install node
|
nvm install node || {
|
||||||
|
echo "nvm command not found, trying to source nvm script directly..."
|
||||||
|
. ~/.nvm/nvm.sh
|
||||||
|
nvm install node
|
||||||
|
}
|
||||||
apt update
|
apt update
|
||||||
apt install -y nodejs
|
apt install -y nodejs
|
||||||
|
|
||||||
npm i -g yarn
|
npm i -g yarn
|
||||||
yarn
|
yarn
|
||||||
export NODE_OPTIONS=--openssl-legacy-provider
|
export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
cd /var/www/pterodactyl
|
yarn build:production || {
|
||||||
yarn build:production
|
echo "node: --openssl-legacy-provider is not allowed in NODE_OPTIONS"
|
||||||
|
export NODE_OPTIONS=
|
||||||
|
yarn build:production
|
||||||
|
}
|
||||||
sudo php artisan optimize:clear
|
sudo php artisan optimize:clear
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
installThemeQuestion(){
|
installThemeQuestion(){
|
||||||
|
Loading…
Reference in New Issue
Block a user