Skip to content
Snippets Groups Projects
Commit 23c86705 authored by jurgenhaas's avatar jurgenhaas
Browse files

Initial site install gets triggered even without the contrib profile as drush has that now build in

parent dd5d11a1
No related branches found
No related tags found
1 merge request!21Merging develop into main [MINOR_VERSION]
...@@ -62,44 +62,42 @@ function create { ...@@ -62,44 +62,42 @@ function create {
restoreEnvFile restoreEnvFile
if [[ -f "docker-compose.yml" ]]; then if [[ -f "docker-compose.yml" ]]; then
if [[ -f "web/profiles/contrib/config_installer/config_installer.info.yml" ]]; then # Start container
# Start container a d4d up
a d4d up sleep 2
sleep 2 drush --no-interaction si ${SITE_INSTALL_ARGS}
drush --no-interaction si ${SITE_INSTALL_ARGS}
# Init site config values # Init site config values
if [[ -f "drush/Commands/dev_modules/dev_modules.info.yml" ]]; then if [[ -f "drush/Commands/dev_modules/dev_modules.info.yml" ]]; then
if [[ -f "/tmp/init_site.json" ]]; then if [[ -f "/tmp/init_site.json" ]]; then
mv /tmp/init_site.json web/.init_site.json mv /tmp/init_site.json web/.init_site.json
drush site:init .init_site.json drush site:init .init_site.json
rm web/.init_site.json rm web/.init_site.json
fi
fi fi
fi
# Dump database # Dump database
if [[ $L3D_DUMP_DB -eq 1 ]]; then if [[ $L3D_DUMP_DB -eq 1 ]]; then
git ignore "/*.sql" git ignore "/*.sql"
drush sql:dump --result-file ../db.sql drush sql:dump --result-file ../db.sql
fi fi
drush -y cex drush -y cex
# shellcheck disable=SC2035 # shellcheck disable=SC2035
git add * git add *
git add .* git add .*
git commit -am "After site install" git commit -am "After site install"
# Push to remote git repository # Push to remote git repository
if [[ -n ${L3D_GIT_REMOTE} ]]; then if [[ -n ${L3D_GIT_REMOTE} ]]; then
git remote add origin "$L3D_GIT_REMOTE" git remote add origin "$L3D_GIT_REMOTE"
git push -u origin main git push -u origin main
fi fi
# Cleanup # Cleanup
if [[ $L3D_CLEANUP -eq 1 ]]; then if [[ $L3D_CLEANUP -eq 1 ]]; then
docker compose stop docker compose stop
docker compose rm --force -v docker compose rm --force -v
fi
fi fi
fi fi
if [[ $L3D_EXIT -eq 1 ]]; then if [[ $L3D_EXIT -eq 1 ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment