www-data node in its folder 3
This commit is contained in:
parent
f23ce473b5
commit
4e7a5b8658
|
@ -195,8 +195,7 @@ if [[ "$answer" == "y" ]]; then
|
||||||
mkdir /var/www/node
|
mkdir /var/www/node
|
||||||
chown www-data:www-data /var/www/node
|
chown www-data:www-data /var/www/node
|
||||||
|
|
||||||
su -s /bin/bash -c 'cd /var/www/node &&\
|
su -s /bin/bash -c 'curl -o /var/www/node https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &&\
|
|
||||||
export NVM_DIR="$HOME/node/.nvm" &&\
|
export NVM_DIR="$HOME/node/.nvm" &&\
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
||||||
|
|
Loading…
Reference in New Issue