install directus 4

This commit is contained in:
Valentin 2024-02-23 20:24:08 +01:00
parent 0e5eba88fc
commit 27af546b6c
1 changed files with 2 additions and 1 deletions

View File

@ -213,8 +213,9 @@ read answer
if [[ "$answer" == "y" ]]; then
install_pkg tmux
get_username
echo "${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