Skip to content
Snippets Groups Projects
Commit 2df6046a authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge branch 'develop' into 'main'

Merging develop into main [MINOR_VERSION]

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