From bd9ff454d0475e1671a2fa880ac1f782c4ad581d Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 22:45:14 +0100 Subject: [PATCH] directus bootstrap 4 --- install.sh | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 95a6aa8..80b7ae0 100644 --- a/install.sh +++ b/install.sh @@ -238,19 +238,20 @@ if [[ "$answer" == "y" ]]; then su -c "cd &&\ mkdir ${cms_folder} &&\ mkdir ${cms_folder}/uploads &&\ - echo \"HOST=\\\"${ip}\\\"\" >> ${env_file} &&\ - echo \"PUBLIC_URL=\\\"cms.${domain_name}\\\"\" >> ${env_file} &&\ + echo \"HOST='${ip}'\" >> ${env_file} &&\ + echo \"PUBLIC_URL='cms.${domain_name}'\" >> ${env_file} &&\ echo \"PORT=8055\" >> ${env_file} &&\ - echo \"DB_CLIENT=\\\"mysql\\\"\" >> ${env_file} &&\ - echo \"DB_HOST=\\\"127.0.0.1\\\"\" >> ${env_file} &&\ - echo \"DB_PORT=\\\"3306\\\"\" >> ${env_file} &&\ - echo \"DB_DATABASE=\\\"directus\\\"\" >> ${env_file} &&\ - echo \"DB_USER=\\\"directus\\\"\" >> ${env_file} &&\ - echo \"DB_PASSWORD=\\\"${db_directus_password}\\\"\" >> ${env_file} &&\ - echo \"SECRET=\\\"${secret}\\\"\" >> ${env_file} &&\ - echo \"KEY=\\\"${key}\\\"\" >> ${env_file} &&\ - echo \"ADMIN_EMAIL=\\\"${directus_admin_email}\\\"\" >> ${env_file} &&\ - echo \"ADMIN_PASSWORD=\\\"${directus_admin_password}\\\"\" >> ${env_file} &&\ + echo \"DB_CLIENT='mysql'\" >> ${env_file} &&\ + echo \"DB_HOST='127.0.0.1'\" >> ${env_file} &&\ + echo \"DB_PORT='3306'\" >> ${env_file} &&\ + echo \"DB_DATABASE='directus'\" >> ${env_file} &&\ + echo \"DB_USER='directus'\" >> ${env_file} &&\ + echo \"DB_PASSWORD='${db_directus_password}'\" >> ${env_file} &&\ + echo \"SECRET='${secret}'\" >> ${env_file} &&\ + echo \"KEY='${key}'\" >> ${env_file} &&\ + echo \"ADMIN_EMAIL='${directus_admin_email}'\" >> ${env_file} &&\ + echo \"ADMIN_PASSWORD='${directus_admin_password}'\" >> ${env_file} &&\ + cd ${cms_folder} &&\ npx directus bootstrap" $username fi