From 51e3e6048e3b3af2b60cb255cc99ecfe08ec5ddc Mon Sep 17 00:00:00 2001 From: Ben Kuhl Date: Sat, 3 Jun 2017 23:39:02 -0400 Subject: [PATCH] Fixed syntax issue with shell script not running --- docker-compose.yml | 9 +++++++++ services.d/php-fpm/run | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b891cfc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + fpm: + build: + context: . + image: bkuhl/fpm-nginx:latest + volumes: + - ./services.d:/etc/services.d \ No newline at end of file diff --git a/services.d/php-fpm/run b/services.d/php-fpm/run index 7b231fd..2632c37 100755 --- a/services.d/php-fpm/run +++ b/services.d/php-fpm/run @@ -1,10 +1,12 @@ #!/usr/bin/with-contenv sh # Enable opcache for production -if ["$APP_ENV" == "production"]; then +if [ "$APP_ENV" == "production" ]; then mv /usr/local/etc/php/opcache_disabled.ini /usr/local/etc/php/opcache.ini echo "Enabling PHP-FPM's opcache for production"; -;fi +else + echo "PHP-FPM's opcache is NOT enabled"; +fi su www-data