Skip to content

Commit

Permalink
Updating migration
Browse files Browse the repository at this point in the history
  • Loading branch information
IPadawans committed Apr 23, 2024
1 parent 5f7f53c commit 6082ae0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/migrations/v0.10.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function migrate_v_0_10_0() {
jq '.version = "0.10.0" | del(.version)' $ROOT_PATH/euclid.json >$ROOT_PATH/temp.json && mv $ROOT_PATH/temp.json $ROOT_PATH/euclid.json
jq '.docker.start_grafana_container = .docker.start_monitoring_container | del(.docker.start_monitoring_container)' $ROOT_PATH/euclid.json >$ROOT_PATH/temp.json && mv $ROOT_PATH/temp.json $ROOT_PATH/euclid.json
jq 'del(.deploy.ansible)' $ROOT_PATH/euclid.json >$ROOT_PATH/temp.json && mv $ROOT_PATH/temp.json $ROOT_PATH/euclid.json
jq '.deploy + { "ansible": {
jq '.deploy += { "ansible": {
"hosts": "infra/ansible/remote/hosts.ansible.yml",
"nodes": {
"playbooks": {
Expand All @@ -24,8 +24,11 @@ function migrate_v_0_10_0() {
if [ ! -d "euclid-development-environment" ]; then
git clone --quiet https://github.com/Constellation-Labs/euclid-development-environment.git
fi

rm -r $INFRA_PATH/ansible
mv $INFRA_PATH/euclid-development-environment/infra/ansible $INFRA_PATH

cd $ROOT_PATH

echo_green "Updated"
}

0 comments on commit 6082ae0

Please sign in to comment.