From 5369e59f9adb44357487349dc808b97eb44dbe20 Mon Sep 17 00:00:00 2001 From: Vedran Pugar <72854396+vpugar-digital@users.noreply.github.com> Date: Tue, 28 May 2024 11:17:01 +0200 Subject: [PATCH] D-34407 type-default.properties are not synced from the central-conf (#224) * D-34407 type-default.properties are not synced from the central-conf * D-34407 type-default.properties are not synced from the central-conf --------- Co-authored-by: Vedran Pugar --- .../central-configuration-run-script.j2 | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/templates/resources/includes/central-configuration-run-script.j2 b/templates/resources/includes/central-configuration-run-script.j2 index 0cab7f21f..44e37717b 100644 --- a/templates/resources/includes/central-configuration-run-script.j2 +++ b/templates/resources/includes/central-configuration-run-script.j2 @@ -15,7 +15,7 @@ if [ ! -f "${APP_HOME}/conf/{{ boot_conf }}" ]; then echo "Done" fi -# copy default configurations +# copy default configurations default-conf echo "... Copying default configuration from ${APP_HOME}/default-conf" for f in *; do @@ -29,5 +29,23 @@ for f in *; do cp -R $f ${APP_HOME}/conf/ fi done + +# copy default configurations central-conf +echo "... Copying default configuration from ${APP_HOME}/central-conf" + +cd ${APP_HOME}/central-conf + +for f in *; do + if [[ $f == *.template ]]; then + continue + fi + if [ -f ${APP_HOME}/centralConfiguration/$f ]; then + echo "... Not copying $f because it already exists in the centralConfiguration directory" + else + echo "... Copying $f to the centralConfiguration directory" + cp -R $f ${APP_HOME}/centralConfiguration/ + fi +done + cd ${APP_HOME} echo "Done copying default configurations"