Skip to content

Commit

Permalink
chore: update shopware and magento install
Browse files Browse the repository at this point in the history
  • Loading branch information
janosmiko committed Jan 3, 2025
1 parent c24cf6f commit 4c852be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions images/_php-fpm-common/shopware-web/bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,16 @@ shopware_admin_user() {
}

shopware_configure_redis() {
log "Configuring Redis"
mkdir -p "$(app_path)/config/packages"

if [[ "${SHOPWARE_REDIS_ENABLED:-false}" != "true" ]]; then
log "Redis is not enabled, disable redis config"
: >"$(app_path)/config/packages/zz-redis.yml"

return 0
fi

log "Configuring Redis"
mkdir -p "$(app_path)/config/packages"
cat <<EOF >"$(app_path)/config/packages/zz-redis.yml"
framework:
session:
Expand Down
2 changes: 1 addition & 1 deletion images/_php-fpm-common/shopware-web/bin/install_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ function test_shopware_configure_redis() {

# Default
shopware_configure_redis
assert_file_not_exists "${APP_PATH}/config/packages/zz-redis.yml"
assert_is_file_empty "${APP_PATH}/config/packages/zz-redis.yml"
rm -fr './test-data'

# Custom values
Expand Down

0 comments on commit 4c852be

Please sign in to comment.