From 0e5eba88fcf41d7fafac95230aff710444451753 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 20:21:56 +0100 Subject: [PATCH] install directus 3 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fdcd7b5..32b364a 100644 --- a/install.sh +++ b/install.sh @@ -213,8 +213,8 @@ read answer if [[ "$answer" == "y" ]]; then install_pkg tmux get_username - su -c 'whoami && cd &&\ - npm init directus-project@latest cms.${domain_name} &&\ + su -c 'cd &&\ + /home/${username}/.nvm/versions/node/v18.19.1/bin/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