Skip to content
Snippets Groups Projects
Commit 38c7f074 authored by jurgenhaas's avatar jurgenhaas
Browse files

drupal/development/eca#1 Disable Redis settings for "drush si" and install...

drupal/development/eca#1 Disable Redis settings for "drush si" and install Redis automatically afterwards
parent c293521f
No related branches found
No related tags found
1 merge request!20Merging develop into main
#!/bin/sh #!/bin/sh
function setPermissions { function setPermissions {
chmod -R g+w . sudo chmod -R g+w .
} }
FLAG= FLAG=
...@@ -9,13 +9,18 @@ if [[ "$1" == "-T" ]]; then ...@@ -9,13 +9,18 @@ if [[ "$1" == "-T" ]]; then
FLAG=-T FLAG=-T
shift shift
fi fi
if [[ "$1" == "si" ]] || [[ "$1" == "sin" ]] || [[ "$1" == "site-install" ]]; then
FLAG="$FLAG -e L3D_DISABLE_REDIS=yes"
fi
docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@" docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@"
EC=$? EC=$?
if [[ "$1" == "gen" ]]; then if [[ "$1" == "si" ]] || [[ "$1" == "sin" ]] || [[ "$1" == "site-install" ]]; then
setPermissions if [[ -f web/modules/contrib/redis/example.services.yml ]]; then
docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush -y en redis
fi
fi fi
if [[ "$1" == "generate" ]]; then if [[ "$1" == "gen" ]] || [[ "$1" == "generate" ]]; then
setPermissions setPermissions
fi fi
......
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