File: generate_envoy_config.sh

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (17 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Check if the correct number of arguments are provided
if [ "$#" -ne 3 ]; then
    echo "Usage: $0 <template_file_path> <output_envoy_config_file> <account_name>"
    exit 1
fi

# Assign arguments to variables
template_file_path=$1
output_envoy_config_file=$2
account_name=$3

# Replace occurrences of "<>" with the account name and write to the new file
sed "s/<>/$account_name/g" "$template_file_path" > "$output_envoy_config_file"

echo "Replacement complete. The result is saved in $output_envoy_config_file"