Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two text replacements in init script #556

Merged
merged 14 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,22 @@ do
perl -i -pe "s/spring-boot-template/$component_name/g" ${i}
done

#update maintainer name
# Remove "rpe-" prefix from chart name to prepare it for spring-boot-template slug replacement and update maintainer name
for i in "charts/rpe-spring-boot-template/Chart.yaml"
do
perl -i -pe "s/rpe-//g" ${i}
perl -i -pe "s/rpe/$product_name/g" ${i}
done

#update app insights & file mount config
for i in "src/main/resources/application.yaml lib/applicationinsights.json"
# Update mount config and packagesToScan
for i in "src/main/resources/application.yaml"
do
perl -i -pe "s/rpe/$product_name/g" ${i}
perl -i -pe "s/reform.demo/reform.$package/g" ${i}
done

# Update app insights
for i in "lib/applicationinsights.json"
do
perl -i -pe "s/rpe/$product_name/g" ${i}
perl -i -pe "s/demo/$component_name/g" ${i}
Expand Down