add a wrapper for theWordPress php executeable
This commit is contained in:
parent
fc93b74c19
commit
fa6ddb58a5
1 changed files with 13 additions and 0 deletions
13
wordpress/php
Executable file
13
wordpress/php
Executable 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
|
Loading…
Reference in a new issue