Skip to content
Snippets Groups Projects
Commit 561250e5 authored by jurgenhaas's avatar jurgenhaas
Browse files

Delete active container if PHP version doesn't match

parent 0bfd8db1
No related branches found
No related tags found
1 merge request!14Merging develop into main
......@@ -222,7 +222,7 @@ if [[ "$INSTALLED_PHP_VERSION" != "$PHP_VERSION" ]]; then
echo -e "\\033[31m ERROR: PHP $INSTALLED_PHP_VERSION installed but $PHP_VERSION expected !!! \\033[0m"
echo -e "\\033[31m ============================================= \\033[0m"
if [[ "${COMPOSE_PROJECT_NAME}" != "." ]]; then
docker container ls --all -q -f name=^${COMPOSE_PROJECT_NAME}_l3d
docker rm -f ${COMPOSE_PROJECT_NAME}_l3d
fi
fi
if [[ "$COMPOSER_DOWNGRADE" == "1" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment