fix: escape '$' to '$$' in docker-compose.yml file (#234)

This commit is contained in:
Hiven Ou 2025-07-29 20:58:05 +08:00 committed by GitHub
parent 4310dee4c2
commit 14ca189316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ services:
cp /opt/bitnami/elasticsearch/analysis-smartcn.zip /tmp/analysis-smartcn.zip cp /opt/bitnami/elasticsearch/analysis-smartcn.zip /tmp/analysis-smartcn.zip
elasticsearch-plugin install file:///tmp/analysis-smartcn.zip elasticsearch-plugin install file:///tmp/analysis-smartcn.zip
if [[ "$?" != "0" ]]; then if [[ "$$?" != "0" ]]; then
echo 'Plugin installation failed, exiting operation'; echo 'Plugin installation failed, exiting operation';
rm -rf /opt/bitnami/elasticsearch/plugins/analysis-smartcn rm -rf /opt/bitnami/elasticsearch/plugins/analysis-smartcn
exit 1; exit 1;
@ -481,7 +481,7 @@ services:
- -c - -c
- | - |
set -ex set -ex
for i in $(seq 1 60); do for i in $$(seq 1 60); do
DB_HOST="$${MYSQL_HOST}" DB_HOST="$${MYSQL_HOST}"
if [ "$${MYSQL_HOST}" = "localhost" ] || [ "$${MYSQL_HOST}" = "127.0.0.1" ]; then if [ "$${MYSQL_HOST}" = "localhost" ] || [ "$${MYSQL_HOST}" = "127.0.0.1" ]; then
DB_HOST="mysql" DB_HOST="mysql"