install directus 5

This commit is contained in:
Valentin 2024-02-23 20:52:10 +01:00
parent 27af546b6c
commit 845f314c52
1 changed files with 3 additions and 3 deletions

View File

@ -214,9 +214,9 @@ if [[ "$answer" == "y" ]]; then
install_pkg tmux
get_username
echo "${username}"
su -c 'cd &&\
su -c "cd &&\
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
echo \"HOST=${ip}\" >> cms.${domain_name}/.env &&\
echo \"PUBLIC_URL=cms.${domain_name}\" >> cms.${domain_name}/.env" $username
fi
# TODO REMOVE EXPECT IF IT IS INSTALLED