From 0916e5b90bd1596bda9599507451bcd48e1ca5aa Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 11:51:02 +0100 Subject: [PATCH] create context script --- docker/php/scripts/context.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docker/php/scripts/context.sh diff --git a/docker/php/scripts/context.sh b/docker/php/scripts/context.sh new file mode 100644 index 0000000..2e18dfd --- /dev/null +++ b/docker/php/scripts/context.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +APP_DIR=/var/www/app +IS_DEV=${DEV:-0} + +run() { + if [ "$IS_DEV" = 1 ]; then + gosu www-data "$@" + else + "$@" + fi +} \ No newline at end of file