diff --git a/setup/scripts/l3d b/setup/scripts/l3d index e58c0ba5f6952e869a92db4ffedeccda0680f183..2ec918c87af5af63973b62efb83bb9cd83e15931 100755 --- a/setup/scripts/l3d +++ b/setup/scripts/l3d @@ -24,7 +24,7 @@ esac mkdir -p ${HOME}/.composer touch ${HOME}/.composer/auth.json -if [[ -s "${HOME}/.composer/auth.json" ]]; then +if [[ ! -s "${HOME}/.composer/auth.json" ]]; then echo "{}" > ${HOME}/.composer/auth.json fi touch ${HOME}/.gitconfig diff --git a/start.sh b/start.sh index a82b33cbd3f813bac608b7f61de95d07117fb62e..54cf73f5b6303f00e8e7f709c99bec7f37998c79 100755 --- a/start.sh +++ b/start.sh @@ -28,6 +28,9 @@ function restoreEnvFile { if [[ -n ${COMPOSE_PROJECT_NAME} ]]; then echo "COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}" >>.env fi + if [[ -n ${COMPOSER_DOWNGRADE} ]]; then + echo "COMPOSER_DOWNGRADE=${COMPOSER_DOWNGRADE}" >>.env + fi if [[ -f ".env" ]]; then # shellcheck disable=SC2046 # shellcheck disable=SC2094