docker/wordpress/php

13 lines
346 B
Bash
Executable file

#!/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