install directus 2

This commit is contained in:
Valentin 2024-02-23 20:18:42 +01:00
parent 53496574d9
commit 9475871df8
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ install_pkg() {
get_username() { get_username() {
if [[ -z "$username" ]]; then if [[ -z "$username" ]]; then
username=$(getent passwd 1000 | cut -d: -f1) username=$(getent passwd 1000 | cut -d: -f1)
echo $username
fi fi
} }
@ -214,7 +213,7 @@ read answer
if [[ "$answer" == "y" ]]; then if [[ "$answer" == "y" ]]; then
install_pkg tmux install_pkg tmux
get_username get_username
su -c 'cd &&\ su -c 'whoami && cd &&\
npm init directus-project@latest cms.${domain_name} &&\ npm init 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