From 9475871df85c10a182f1798e7a25e3c27f21bd18 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 20:18:42 +0100 Subject: [PATCH] install directus 2 --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c5f8c94..fdcd7b5 100644 --- a/install.sh +++ b/install.sh @@ -15,7 +15,6 @@ install_pkg() { get_username() { if [[ -z "$username" ]]; then username=$(getent passwd 1000 | cut -d: -f1) - echo $username fi } @@ -214,7 +213,7 @@ read answer if [[ "$answer" == "y" ]]; then install_pkg tmux get_username - su -c 'cd &&\ + su -c 'whoami && 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