add a wrapper for theWordPress php executeable

This commit is contained in:
André Menrath 2023-12-19 15:54:51 +01:00
parent fc93b74c19
commit fa6ddb58a5

13
wordpress/php Executable file
View file

@ -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