diff --git a/docker/init-docker b/docker/init-docker index c95196c..8af15f8 100755 --- a/docker/init-docker +++ b/docker/init-docker @@ -100,7 +100,7 @@ if [ -r artisan -a -e ${php}/.env ]; then # We only check for non mount points, in case this container has the app inside mp=$(mp ${php}) - if [ -n "${BUILD}" -o ${mp} -eq 0 ]; then + if [ -z "${BUILD}" -o ${mp} -eq 0 ]; then echo " - Caching configuration..." CMD="php artisan optimize" ( [ -n "${USE_SU}" ] && su ${SITE_USER} -s /bin/sh -c "${CMD}" ) || ${CMD}