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

docker/l3d#140 Only call config-split:import if that module is installed and enabled

parent 715ae8b3
No related branches found
No related tags found
1 merge request!81Merging develop into main
Pipeline #1156719 passed
......@@ -4,7 +4,10 @@ commands:
cmd: |
download db ${PROJECT_BRANCH}
drush @default.dev cr
drush -y @default.dev config-split:import develop
SPLIT=$(drush pm-list --format=json --status=enabled --filter=name=config_split)
if [[ "$SPLIT" != "[]" ]]; then
drush -y @default.dev config-split:import develop
fi
download files ${PROJECT_BRANCH}
chmod -R ugo+w files/default/files
chmod -R ugo+w files/default/private
......@@ -13,7 +16,10 @@ commands:
cmd: |
download db ${PROJECT_BRANCH}
drush @default.dev cr
drush -y @default.dev config-split:import develop
SPLIT=$(drush pm-list --format=json --status=enabled --filter=name=config_split)
if [[ "$SPLIT" != "[]" ]]; then
drush -y @default.dev config-split:import develop
fi
usage: Pull DB from live site
pull-files:
cmd: |
......
......@@ -4,7 +4,10 @@ commands:
cmd: |
download db main
drush @default.dev cr
drush -y @default.dev config-split:import develop
SPLIT=$(drush pm-list --format=json --status=enabled --filter=name=config_split)
if [[ "$SPLIT" != "[]" ]]; then
drush -y @default.dev config-split:import develop
fi
download files main
chmod -R ugo+w files/default/files
chmod -R ugo+w files/default/private
......@@ -13,7 +16,10 @@ commands:
cmd: |
download db main
drush @default.dev cr
drush -y @default.dev config-split:import develop
SPLIT=$(drush pm-list --format=json --status=enabled --filter=name=config_split)
if [[ "$SPLIT" != "[]" ]]; then
drush -y @default.dev config-split:import develop
fi
usage: Pull DB from live site
pull-files:
cmd: |
......
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