install directus 9
This commit is contained in:
parent
b5717a0f62
commit
8ac382e801
10
install.sh
10
install.sh
|
@ -186,10 +186,10 @@ if [[ "$answer" == "y" ]]; then
|
||||||
export NVM_DIR="$HOME/.nvm" &&\
|
export NVM_DIR="$HOME/.nvm" &&\
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&\
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&\
|
||||||
nvm install v18' $username
|
nvm install v20' $username
|
||||||
ln -s /home/$username/.nvm/versions/node/v18.19.1/bin/node /usr/bin/node
|
ln -s /home/$username/.nvm/versions/node/v20.11.1/bin/node /usr/bin/node
|
||||||
ln -s /home/$username/.nvm/versions/node/v18.19.1/bin/npm /usr/bin/npm
|
ln -s /home/$username/.nvm/versions/node/v20.11.1/bin/npm /usr/bin/npm
|
||||||
echo "${PURPLE}${BOLD}Node installed${RESET}";
|
echo -e "${PURPLE}${BOLD}Node installed${RESET}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -216,7 +216,7 @@ if [[ "$answer" == "y" ]]; then
|
||||||
install_pkg tmux
|
install_pkg tmux
|
||||||
get_username
|
get_username
|
||||||
su -c "cd &&\
|
su -c "cd &&\
|
||||||
npm init directus-project@latest cms.${domain_name} &&\
|
npm init -y directus-project@latest cms.${domain_name} &&\
|
||||||
echo \"HOST=${ip}\" >> cms.${domain_name}/.env &&\
|
echo \"HOST=${ip}\" >> cms.${domain_name}/.env &&\
|
||||||
echo \"PUBLIC_URL=cms.${domain_name}\" >> cms.${domain_name}/.env" $username
|
echo \"PUBLIC_URL=cms.${domain_name}\" >> cms.${domain_name}/.env" $username
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue