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