Skip to content

Commit

Permalink
D-34407 type-default.properties are not synced from the central-conf (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
vpugar-digital and Vedran Pugar authored May 28, 2024
1 parent 68b7ec0 commit 5369e59
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion templates/resources/includes/central-configuration-run-script.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

0 comments on commit 5369e59

Please sign in to comment.