blob: 242e76da7bebe4aab83829d453fbfa86fdfd7b5e [file] [log] [blame]
jimmydot3982f4f2017-05-07 14:58:24 -04001#!/bin/bash
2
3FINAL_CONFIG_FILE=/tmp/vid/stage/WEB-INF/conf/quartz.properties
4TEMPLATE_CONFIG_FILE=/tmp/vid/stage/WEB-INF/conf/quartz_template.properties
5
6echo "Localizing the VID quartz configuration"
7
8sed -e 's/${VID_MYSQL_HOST}/'${VID_MYSQL_HOST}'/g' \
9 -e 's/${VID_MYSQL_PORT}/'${VID_MYSQL_PORT}'/g' \
10 -e 's/${VID_MYSQL_DBNAME}/'${VID_MYSQL_DBNAME}'/g' \
11 -e 's/${VID_MYSQL_USER}/'${VID_MYSQL_USER}'/g' \
12 -e 's/${VID_MYSQL_PASS}/'${VID_MYSQL_PASS}'/g' \
13 -e 's/${VID_MYSQL_MAXCONNECTIONS}/'${VID_MYSQL_MAXCONNECTIONS}'/g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
14 echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
15 exit 4
16 }
17
18echo "Localized ${FINAL_CONFIG_FILE} successfully."
19
20