From 47238962841f73e66f9b5c3162853618daf718e1 Mon Sep 17 00:00:00 2001 From: volodya Date: Thu, 29 Jul 2021 16:21:29 +0300 Subject: [PATCH] can choose container for exec command --- console/commands/exec.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/console/commands/exec.sh b/console/commands/exec.sh index 88ef3ba..a09bc8e 100755 --- a/console/commands/exec.sh +++ b/console/commands/exec.sh @@ -18,6 +18,13 @@ if [ "$#" == 0 ] || [ "$1" == "--help" ]; then exit 0 fi +if [[ "$1" == "--container" || "$1" == "-c" ]]; then + shift + SERVICE_PHP=$1 + shift +fi + + : ${EXEC_OPTIONS:=""} if [ ${TTY_DISABLE} == true ]; then