Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' for release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalger committed Jul 10, 2019
2 parents 23cb4b1 + af47203 commit fcf5d9a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Updated DNS auto-configuration on linux systems to handle systemd-resolved usage.
* Fixed issue on Ubuntu where dnsmasq container would fail to bind to port 53.
* Fixed issue where lack of `~/.composer` dir (resulting in creation by docker) can cause permissions error inside containers.
* Fixed issue with `bin/magento setup:install` allowing it to pass permissions checks (PR #2 by @fooman)
* Fixed issue where `env` and `env-init` commands failed to reset shell colors when printing error messages (issue #4 reported by @navarr)

0.1.2
===============
Expand Down
4 changes: 2 additions & 2 deletions commands/env-init.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ WARDEN_ENV_NAME="${WARDEN_PARAMS[0]:-}"
WARDEN_ENV_TYPE="${WARDEN_PARAMS[1]:-magento2}"

# Require the user inputs the required environment name parameter
[[ ! ${WARDEN_ENV_NAME} ]] && >&2 echo -e "\033[31mMissing required argument. Please use --help to to print usage." && exit 1
[[ ! ${WARDEN_ENV_NAME} ]] && >&2 echo -e "\033[31mMissing required argument. Please use --help to to print usage.\033[0m" && exit 1

# Verify the auto-select and/or type path resolves correctly before setting it
[[ ! -f "${WARDEN_DIR}/environments/${WARDEN_ENV_TYPE}.base.yml" ]] \
&& >&2 echo -e "\033[31mInvalid environment type \"${WARDEN_ENV_TYPE}\" specified." && exit 1
&& >&2 echo -e "\033[31mInvalid environment type \"${WARDEN_ENV_TYPE}\" specified.\033[0m" && exit 1

# Write the .env file to current working directory
cat > "${WARDEN_ENV_PATH}/.env" <<EOF
Expand Down
2 changes: 1 addition & 1 deletion commands/env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WARDEN_ENV_PATH="$(locateEnvPath)" || exit $?
loadEnvConfig "${WARDEN_ENV_PATH}" || exit $?

if (( ${#WARDEN_PARAMS[@]} == 0 )); then
echo -e "\033[33mThis command has required params which are passed through to docker-compose, please use --help for details."
echo -e "\033[33mThis command has required params which are passed through to docker-compose, please use --help for details.\033[0m"
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions commands/install.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ then
sudo update-ca-trust enable
elif [[ "$OSTYPE" == "linux-gnu" ]] \
&& [[ -d /usr/local/share/ca-certificates ]] \
&& [[ ! -f /usr/local/share/ca-certificates/warden-proxy-local-ca.cert.pem ]] \
&& [[ ! -f /usr/local/share/ca-certificates/warden-proxy-local-ca.crt ]] \
## Ubuntu/Debian
then
echo "==> Trusting root certificate (requires sudo privileges)"
sudo cp "${WARDEN_SSL_DIR}/rootca/certs/ca.cert.pem" /usr/local/share/ca-certificates/warden-proxy-local-ca.cert.pem
sudo cp "${WARDEN_SSL_DIR}/rootca/certs/ca.cert.pem" /usr/local/share/ca-certificates/warden-proxy-local-ca.crt
sudo update-ca-certificates
elif [[ "$OSTYPE" == "darwin"* ]] \
&& ! security dump-trust-settings -d | grep 'Warden Proxy Local CA' >/dev/null \
Expand Down
6 changes: 4 additions & 2 deletions environments/magento2.mutagen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ default = [
# Magento files
"/generated",
"/pub/media",
"/pub/static",
"/var",
"/pub/static/**",
"!/pub/static/.htaccess",
"/var/**",
"!/var/.htaccess",
"node_modules",
]

Expand Down

0 comments on commit fcf5d9a

Please sign in to comment.