Skip to content

Commit

Permalink
Fixed syntax issue with shell script not running
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Kuhl committed Jun 4, 2017
1 parent a026a2a commit 51e3e60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,9 @@
version: '3'

services:
fpm:
build:
context: .
image: bkuhl/fpm-nginx:latest
volumes:
- ./services.d:/etc/services.d
6 changes: 4 additions & 2 deletions 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

Expand Down

0 comments on commit 51e3e60

Please sign in to comment.