diff --git a/dockerfiles/php-fpm/xdebug.sh b/dockerfiles/php-fpm/xdebug.sh index b19e3fa..1e1fcc4 100755 --- a/dockerfiles/php-fpm/xdebug.sh +++ b/dockerfiles/php-fpm/xdebug.sh @@ -38,12 +38,11 @@ xdebug_start () docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}" docker exec -it $PHP_FPM_CONTAINER bash -c "${REMOTE_AUTOSTART_CMD}" docker exec -it $PHP_FPM_CONTAINER bash -c "${REMOTE_ENABLE_CMD}" - docker restart $PHP_FPM_CONTAINER - docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' - if [[ ! -z "${WITH_PROFILER}" ]]; then docker exec -it $PHP_FPM_CONTAINER bash -c "${PROFILER_ENABLE_CDM}" fi + docker restart $PHP_FPM_CONTAINER + docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' } @@ -60,10 +59,10 @@ xdebug_stop () docker exec -it $PHP_FPM_CONTAINER bash -c "${OFF_CMD}" docker exec -it $PHP_FPM_CONTAINER bash -c "${REMOTE_AUTOSTART_CMD}" docker exec -it $PHP_FPM_CONTAINER bash -c "${REMOTE_ENABLE_CMD}" + docker exec -it $PHP_FPM_CONTAINER bash -c "${PROFILER_DISABLE_CMD}" # docker-compose restart php-fpm docker restart $PHP_FPM_CONTAINER docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' - docker exec -it $PHP_FPM_CONTAINER bash -c "${PROFILER_DISABLE_CMD}" }