From 5666e73bc0cd966b339ba0e40210e2b742aadaaf Mon Sep 17 00:00:00 2001 From: Robert Boyd III Date: Wed, 12 Jan 2022 09:28:41 -0500 Subject: [PATCH] Fix Dockerfile typo --- Dockerfile | 4 ++-- deploy/udoit-ng.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39cddbf14..e019964cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:7.4-fpm -ARG ENVIORNMENT_TYPE +ARG ENVIRONMENT_TYPE #Install dependencies and php extensions RUN apt-get update && apt-get install -y \ @@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y \ && docker-php-ext-install pdo_pgsql #Install AWS CLI v2 -RUN if [ "$ENVIORNMENT_TYPE" != "local" ] ;then \ +RUN if [ "$ENVIRONMENT_TYPE" != "local" ] ;then \ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ && unzip awscliv2.zip \ && ./aws/install\ diff --git a/deploy/udoit-ng.sh b/deploy/udoit-ng.sh index c39abde81..9b9b40828 100644 --- a/deploy/udoit-ng.sh +++ b/deploy/udoit-ng.sh @@ -4,9 +4,9 @@ cd /var/www/html # copy localConfig from S3 if you are not on local -if [ "$ENVIORNMENT_TYPE" != "local" ] +if [ "$ENVIRONMENT_TYPE" != "local" ] then - aws s3 cp s3://cidilabs-devops/udoit3/.env.local.$ENVIORNMENT_TYPE /var/www/html/.env.local + aws s3 cp s3://cidilabs-devops/udoit3/.env.local.$ENVIRONMENT_TYPE /var/www/html/.env.local fi # run composer install @@ -16,7 +16,7 @@ composer install --no-dev --no-interaction --no-progress --optimize-autoloader sudo find /var/www/html -type f -exec chmod 664 {} + -o -type d -exec chmod 775 {} + # only setup newrelic if not on local. -if [ "$ENVIORNMENT_TYPE" != "local" ] +if [ "$ENVIRONMENT_TYPE" != "local" ] then # create .user.ini file for New Relic (PHP-FPM only) touch /var/www/html/public/.user.ini