directus bootstrap 4

This commit is contained in:
Valentin 2024-02-23 22:45:14 +01:00
parent 13fceb1552
commit bd9ff454d0
1 changed files with 13 additions and 12 deletions

View File

@ -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