www-data node in its folder 2

This commit is contained in:
Valentin 2024-02-26 16:10:16 +01:00
parent 4482a9acfc
commit f23ce473b5
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@ if [[ "$answer" == "y" ]]; then
mkdir /var/www/node
chown www-data:www-data /var/www/node
su -s /bin/bash -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
su -s /bin/bash -c 'cd /var/www/node &&\
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
export NVM_DIR="$HOME/node/.nvm" &&\
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\