install directus 11
This commit is contained in:
parent
c3d1e87ccc
commit
0fd4e1cfa8
|
@ -186,9 +186,9 @@ if [[ "$answer" == "y" ]]; then
|
|||
export NVM_DIR="$HOME/.nvm" &&\
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
||||
nvm install v20' $username
|
||||
ln -sf /home/$username/.nvm/versions/node/v20.11.1/bin/node /usr/bin/node
|
||||
ln -sf /home/$username/.nvm/versions/node/v20.11.1/bin/npm /usr/bin/npm
|
||||
nvm install v18' $username
|
||||
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/node /usr/bin/node
|
||||
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/npm /usr/bin/npm
|
||||
echo -e "${PURPLE}${BOLD}Node installed${RESET}";
|
||||
fi
|
||||
|
||||
|
@ -216,7 +216,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
install_pkg tmux
|
||||
get_username
|
||||
su -c "cd &&\
|
||||
npm init -y directus-project@latest cms.${domain_name} &&\
|
||||
npm init -y directus-project@latest cms.${domain_name} 2>/dev/null &&\
|
||||
echo \"HOST=${ip}\" >> cms.${domain_name}/.env &&\
|
||||
echo \"PUBLIC_URL=cms.${domain_name}\" >> cms.${domain_name}/.env" $username
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue