Skip to content

Commit

Permalink
Merge remote-tracking branch 'magenius-team/fixed-history-folder-perm…
Browse files Browse the repository at this point in the history
…issions' into develop
  • Loading branch information
davidalger committed Feb 23, 2021
2 parents 9801c9a + 7180e68 commit 4c7967e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions commands/env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ if [[ ${WARDEN_ENV_TYPE} != local ]]; then
WARDEN_NGINX=${WARDEN_NGINX:-1}
WARDEN_DB=${WARDEN_DB:-1}
WARDEN_REDIS=${WARDEN_REDIS:-1}

# define bash history folder for changing permissions
WARDEN_CHOWN_DIR_LIST="/bash_history ${WARDEN_CHOWN_DIR_LIST:-}"
fi
export CHOWN_DIR_LIST=${WARDEN_CHOWN_DIR_LIST:-}

if [[ ${WARDEN_ENV_TYPE} == "magento1" && -f "${WARDEN_ENV_PATH}/.modman/.basedir" ]]; then
export NGINX_PUBLIC='/'$(cat "${WARDEN_ENV_PATH}/.modman/.basedir")
Expand Down
8 changes: 5 additions & 3 deletions environments/includes/php-fpm.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ x-volumes: &volumes
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer:cached
- .${WARDEN_WEB_ROOT:-}/:/var/www/html:cached
- bashhistory:/var/bash_history
- bashhistory:/bash_history

x-extra_hosts: &extra_hosts
- ${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
Expand All @@ -25,7 +25,8 @@ services:
- NODE_VERSION=${NODE_VERSION:-10}
- COMPOSER_VERSION=${COMPOSER_VERSION:-1}
- COMPOSER_MEMORY_LIMIT=-1
- HISTFILE=/var/bash_history/.bash_history
- HISTFILE=/bash_history/.bash_history
- CHOWN_DIR_LIST=${CHOWN_DIR_LIST:-}
volumes: *volumes
extra_hosts: *extra_hosts

Expand All @@ -40,7 +41,8 @@ services:
- COMPOSER_VERSION=${COMPOSER_VERSION:-1}
- COMPOSER_MEMORY_LIMIT=-1
- PHP_IDE_CONFIG=serverName=${WARDEN_ENV_NAME}-docker
- HISTFILE=/var/bash_history/.bash_history
- HISTFILE=/bash_history/.bash_history
- CHOWN_DIR_LIST=${CHOWN_DIR_LIST:-}
volumes: *volumes
extra_hosts: *extra_hosts
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion environments/magento1/magento1.blackfire.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ x-volumes: &volumes
- appdata:/var/www/html

x-environment: &environment
- CHOWN_DIR_LIST=media
- CHOWN_DIR_LIST=media ${CHOWN_DIR_LIST:-}

services:
php-blackfire: { volumes: *volumes, environment: *environment }
2 changes: 1 addition & 1 deletion environments/magento1/magento1.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ x-volumes: &volumes
- appdata:/var/www/html

x-environment: &environment
- CHOWN_DIR_LIST=media
- CHOWN_DIR_LIST=media ${CHOWN_DIR_LIST:-}

services:
nginx: { volumes: *volumes }
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2/magento2.blackfire.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ x-volumes: &volumes
- appdata:/var/www/html

x-environment: &environment
- CHOWN_DIR_LIST=pub/media
- CHOWN_DIR_LIST=pub/media ${CHOWN_DIR_LIST:-}

services:
php-blackfire: { volumes: *volumes, environment: *environment }
2 changes: 1 addition & 1 deletion environments/magento2/magento2.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ x-volumes: &volumes
- appdata:/var/www/html

x-environment: &environment
- CHOWN_DIR_LIST=pub/media
- CHOWN_DIR_LIST=pub/media ${CHOWN_DIR_LIST:-}

services:
nginx: { volumes: *volumes }
Expand Down
2 changes: 1 addition & 1 deletion environments/shopware/shopware.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ x-volumes: &volumes
- appdata:/var/www/html

x-environment: &environment
- CHOWN_DIR_LIST=public/media
- CHOWN_DIR_LIST=public/media ${CHOWN_DIR_LIST:-}

services:
nginx: { volumes: *volumes }
Expand Down

0 comments on commit 4c7967e

Please sign in to comment.