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

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !21
parents c382c576 66e32444
No related branches found
Tags v2.0.8
1 merge request!21Merging develop into main
Pipeline #572651 passed
...@@ -4,23 +4,35 @@ function setPermissions { ...@@ -4,23 +4,35 @@ function setPermissions {
sudo chmod -R g+w . sudo chmod -R g+w .
} }
MODE=default
FLAG= FLAG=
if [[ "$1" == "-T" ]]; then if [[ "$1" == "-T" ]]; then
FLAG=-T FLAG=-T
shift shift
fi fi
if [[ "$1" == "si" ]] || [[ "$1" == "sin" ]] || [[ "$1" == "site-install" ]]; then for arg in "$@"; do
FLAG="$FLAG -e L3D_DISABLE_REDIS=yes" case "$arg" in
fi si|sin|site-install|site:install)
FLAG="$FLAG -e L3D_DISABLE_REDIS=yes"
MODE=site-install
break
;;
gen|generate)
MODE=generator
break
;;
esac
done
docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@" docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@"
EC=$? EC=$?
if [[ "$1" == "si" ]] || [[ "$1" == "sin" ]] || [[ "$1" == "site-install" ]]; then if [[ "$MODE" == "site-install" ]]; then
if [[ -f web/modules/contrib/redis/example.services.yml ]]; then if [[ -f web/modules/contrib/redis/example.services.yml ]]; then
docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush -y en redis docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush -y en redis
fi fi
fi fi
if [[ "$1" == "gen" ]] || [[ "$1" == "generate" ]]; then if [[ "$MODE" == "generator" ]]; 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