From 83558e898fca6142788ea64b6062b1f02b595d02 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 2 Mar 2025 23:07:43 +1100 Subject: [PATCH] Dont call artisan optimize if BUILD is set --- docker/init-docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}