1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 14:07:02 +09:00

docker-generateconfig/processing.sh: refact

This commit is contained in:
Grigory Efimov 2024-02-12 16:57:16 -03:00
parent 450d49c998
commit 4bce1cbe3a
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939

View file

@ -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