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