ci-cd-pipeline-app-murano/murano-apps/LBaaS-interface/package/Resources/scripts/setConfigValue.sh
Nikolay Mahotkin f1b410e292 LBaaS packages contents moved to 'package' folder
* For consistency with other packages,
   LBaaS-interface package and HAProxy-based-LBaaS are moved
   to 'package' folder

Change-Id: I577f4c669a9c96b1c36f4a93bae14dc323e51d78
2016-08-01 17:55:20 +03:00

9 lines
164 B
Bash

#!/bin/bash
section=$1
key=$2
value=$3
# Set value in lbaas config file.
sudo sed -i "/^\[$section\]$/,/^\[/ s/^#*$key.*=.*/$key = $value/" /etc/lbaas/lbaas.conf