From fa6ddb58a5fbf8b8e22d5e285e978f656cae1ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 19 Dec 2023 15:54:51 +0100 Subject: [PATCH] add a wrapper for theWordPress php executeable --- wordpress/php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 wordpress/php diff --git a/wordpress/php b/wordpress/php new file mode 100755 index 0000000..6f596aa --- /dev/null +++ b/wordpress/php @@ -0,0 +1,13 @@ +#!/bin/bash + +# Get the directory of the script +script_dir="$(dirname "$(readlink -f "$0")")" + +# Construct the path to docker-compose.yml relative to the script +compose_file="$script_dir/../docker-compose.yml" + +# Form the docker-compose command +command="docker-compose --file $compose_file exec wordpress php "$@"" + +# Execute the command +$command