mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
docker-generateconfig/processing.sh: refact
This commit is contained in:
parent
450d49c998
commit
4bce1cbe3a
1 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,15 @@ for node_type in node_1 node_2 node_3 coordinator filenode consensusnode; do
|
|||
done
|
||||
|
||||
# Replace other placeholders
|
||||
placeholders=( "MONGO_CONNECT" "REDIS_URL" "MINIO_PORT" "MINIO_BUCKET" "ANY_SYNC_COORDINATOR_FILE_LIMIT_DEFAULT" "ANY_SYNC_COORDINATOR_FILE_LIMIT_ALPHA_USERS" "ANY_SYNC_COORDINATOR_FILE_LIMIT_NIGHTLY_USERS")
|
||||
placeholders=(
|
||||
"MONGO_CONNECT"
|
||||
"REDIS_URL"
|
||||
"MINIO_PORT"
|
||||
"MINIO_BUCKET"
|
||||
"ANY_SYNC_COORDINATOR_FILE_LIMIT_DEFAULT"
|
||||
"ANY_SYNC_COORDINATOR_FILE_LIMIT_ALPHA_USERS"
|
||||
"ANY_SYNC_COORDINATOR_FILE_LIMIT_NIGHTLY_USERS"
|
||||
)
|
||||
for placeholder in "${placeholders[@]}"; do
|
||||
perl -i -pe "s|%${placeholder}%|${!placeholder}|g" "${network_file}" "${dest_path}/"/*/*.yml
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue