directus bootstrap 4
This commit is contained in:
parent
13fceb1552
commit
bd9ff454d0
25
install.sh
25
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue