From 3502628ee46c6d85cde7b4af086e973423ef56a3 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Dec 2023 15:09:44 +0800 Subject: [PATCH] magento --- apps/magento/docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/magento/docker-compose.yml b/apps/magento/docker-compose.yml index 32be2e604..1066439f3 100644 --- a/apps/magento/docker-compose.yml +++ b/apps/magento/docker-compose.yml @@ -49,8 +49,7 @@ services: exit 0 fi echo $W9_URL - if expr "$W9_URL" : '^\(25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\)\.\(25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\)\.\(25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\)\.\(25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\)$' >/dev/null - then + if echo \"\$W9_URL\" | grep -qE '^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\$'; then wp_url=$W9_URL:$W9_HTTP_PORT_SET echo 'URL is IP' else