jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame^] | 1 | #!/bin/bash
|
| 2 |
|
| 3 | FINAL_CONFIG_FILE=/tmp/vid/stage/WEB-INF/classes/cache.ccf
|
| 4 | TEMPLATE_CONFIG_FILE=/tmp/vid/stage/WEB-INF/classes/cache_template.ccf
|
| 5 |
|
| 6 | echo "Localizing the VID cache configuration"
|
| 7 |
|
| 8 | mkdir -p "${CACHE_DIRECTORY}"
|
| 9 |
|
| 10 | sed -e 's,${CACHE_DIRECTORY},'${CACHE_DIRECTORY}',g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
|
| 11 | echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
|
| 12 | exit 3
|
| 13 | }
|
| 14 |
|
| 15 | echo "Localized ${FINAL_CONFIG_FILE} successfully."
|