From 27af546b6ced143a930ed53ca514934b4fa9e2a9 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 20:24:08 +0100 Subject: [PATCH] install directus 4 --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 32b364a..1c2c4cd 100644 --- a/install.sh +++ b/install.sh @@ -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