mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
use blade as conmmands template (#444)
* use blade as conmmands template * fix lint * fix ssl
This commit is contained in:
13
resources/views/ssh/services/nodejs/change-default-nodejs.blade.php
Executable file
13
resources/views/ssh/services/nodejs/change-default-nodejs.blade.php
Executable file
@ -0,0 +1,13 @@
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
if ! nvm alias default {{ $version }}; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
if ! nvm use default; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
echo "Default Node.js is now:"
|
||||
node -v
|
Reference in New Issue
Block a user