Merge branch 'main' of ssh://git.format.hu/format/framework-scheduler
This commit is contained in:
@@ -148,6 +148,7 @@ deploy_additionals(){
|
|||||||
for key in $(echo "$JSON" | jq -r 'keys[]'); do
|
for key in $(echo "$JSON" | jq -r 'keys[]'); do
|
||||||
value=$(echo "$JSON" | jq -r --arg k "$key" '.[$k]')
|
value=$(echo "$JSON" | jq -r --arg k "$key" '.[$k]')
|
||||||
# eval "$key=$value"
|
# eval "$key=$value"
|
||||||
|
value=$(echo "$value" | sed 's/\//\\\//g') # escape / character
|
||||||
|
|
||||||
# replace variables in secret and domain files
|
# replace variables in secret and domain files
|
||||||
sed -i "s/#"$key"/"$value"/g" $SECRET_DIR/$NAME/$NAME.json;
|
sed -i "s/#"$key"/"$value"/g" $SECRET_DIR/$NAME/$NAME.json;
|
||||||
|
Reference in New Issue
Block a user