install directus 8

This commit is contained in:
Valentin 2024-02-23 21:03:10 +01:00
parent c5d459f55f
commit b5717a0f62
1 changed files with 3 additions and 1 deletions

View File

@ -187,6 +187,8 @@ if [[ "$answer" == "y" ]]; then
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
nvm install v18' $username
ln -s /home/$username/.nvm/versions/node/v18.19.1/bin/node /usr/bin/node
ln -s /home/$username/.nvm/versions/node/v18.19.1/bin/npm /usr/bin/npm
echo "${PURPLE}${BOLD}Node installed${RESET}";
fi
@ -214,7 +216,7 @@ if [[ "$answer" == "y" ]]; then
install_pkg tmux
get_username
su -c "cd &&\
/home/${username}/.nvm/versions/node/v18.19.1/bin/npm init directus-project@latest cms.${domain_name} &&\
npm init directus-project@latest cms.${domain_name} &&\
echo \"HOST=${ip}\" >> cms.${domain_name}/.env &&\
echo \"PUBLIC_URL=cms.${domain_name}\" >> cms.${domain_name}/.env" $username
fi