Feature/nodejs (#397)

* Add node support using nvm

* Add icon

* Rename to NodeJS

* Rename to NodeJS

* update php and node logo

* only services which have units can be started,restarted,stopped,disabled and enabled

* add tests

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
This commit is contained in:
Mark Topper
2024-12-24 17:49:27 +01:00
committed by GitHub
parent da1043185a
commit 924920e6e8
21 changed files with 706 additions and 2 deletions

View 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