Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Created February 9, 2021 22:41
Show Gist options
  • Save onefoursix/4e9fb253b39a92c04c3f20e83b55a4f8 to your computer and use it in GitHub Desktop.
Save onefoursix/4e9fb253b39a92c04c3f20e83b55a4f8 to your computer and use it in GitHub Desktop.
Util for SCH install
declare -a dbs=("connection" "jobrunner" "messaging" "notification" "pipelinestore" "policy" "provisioning" "reporting" "scheduler" "sdp_classification" "security" "sla" "timeseries" "topology" "dynamic_preview")
for i in "${dbs[@]}"
do
sed -i "s/^db.openjpa.ConnectionURL=/db.openjpa.ConnectionURL=jdbc\:mysql\:\/\/localhost:3306\/${i}?useSSL=false/" ${i}-app.properties
sed -i "s/^db.openjpa.ConnectionUserName=/db.openjpa.ConnectionUserName=sch/" ${i}-app.properties
sed -i "s/^db.openjpa.ConnectionPassword=/db.openjpa.ConnectionPassword=Mysql12345!/" ${i}-app.properties
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment