1 # Copyright © 2017 Amdocs, Bell Canada, AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
17 PROPS_BUILD="${POLICY_HOME}/etc/build.info"
19 PROPS_RUNTIME="${POLICY_HOME}/servers/brmsgw/config.properties"
20 PROPS_INSTALL="${POLICY_HOME}/install/servers/brmsgw/config.properties"
23 if [ ! -f "${PROPS_BUILD}" ]; then
24 echo "error: version information does not exist: ${PROPS_BUILD}"
28 source "${POLICY_HOME}/etc/build.info"
30 if [ -z "${version}" ]; then
31 echo "error: no version information present"
35 for CONFIG in ${PROPS_RUNTIME} ${PROPS_INSTALL}; do
36 if [ ! -f "${CONFIG}" ]; then
37 echo "warning: configuration does not exist: ${CONFIG}"
39 sed -i -e "s/brms.dependency.version=.*/brms.dependency.version=${version}/g" "${CONFIG}"