diff --git a/infrastructure/deployment/deploy.sh b/infrastructure/deployment/deploy.sh index 34d966be..eb3bea20 100755 --- a/infrastructure/deployment/deploy.sh +++ b/infrastructure/deployment/deploy.sh @@ -299,6 +299,13 @@ docker_stack_deploy() { docker stack deploy --prune -c '$(split_and_join " " " -c " "$(to_remote_paths $COMPOSE_FILES_USED)")' --with-registry-auth opencrvs' } +reset_metabase() { + echo "Reseting metabase" + configured_ssh 'docker service scale opencrvs_dashboards=0 && \ + rm /data/metabase/metabase.mv.db && \ + docker service scale opencrvs_dashboards=1' +} + validate_options # Create new passwords for all MongoDB users created in @@ -413,6 +420,8 @@ EMAIL_PAYLOAD='{ "to": "{{ALERT_EMAIL}}" }' +reset_metabase + configured_ssh "docker run --rm --network=opencrvs_overlay_net appropriate/curl \ -X POST 'http://countryconfig:3040/email' \ -H 'Content-Type: application/json' \