jimmydot | 8b8addd | 2017-05-08 18:00:46 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
kurczews | 7b8621d | 2018-09-19 08:17:52 +0200 | [diff] [blame^] | 3 | FINAL_CONFIG_FILE=$1/classes/cache.ccf |
| 4 | TEMPLATE_CONFIG_FILE=$1/classes/cache_template.ccf |
jimmydot | 8b8addd | 2017-05-08 18:00:46 -0400 | [diff] [blame] | 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." |