diff --git a/install.sh b/install.sh index 3a27190..8fc6050 100644 --- a/install.sh +++ b/install.sh @@ -213,9 +213,8 @@ read answer if [[ "$answer" == "y" ]]; then install_pkg tmux get_username - echo "${username}" - su -c "cd &&\ - npm init directus-project@latest cms.${domain_name} &&\ + su -c "whoami && cd &&\ + /home/${username}/.nvm/versions/node/v18.19.1/lib/node_modules/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