Skip to content

Commit c8b1d8c

Browse files
authored
Merge pull request #1103 from opencrvs/fix-clear-data
fix: clear-all-data script fixes
2 parents d179123 + f43621d commit c8b1d8c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

infrastructure/clear-all-data.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ docker run --rm --network=$NETWORK \
140140
-e POSTGRES_DB="${POSTGRES_DB}" \
141141
-e EVENTS_MIGRATOR_ROLE="${EVENTS_MIGRATOR_ROLE}" \
142142
-e EVENTS_APP_ROLE="${EVENTS_APP_ROLE}" \
143-
-e ANALYTICS_POSTGRES_USER="${ANALYTICS_POSTGRES_USER}" \
143+
-e ANALYTICS_POSTGRES_ROLE="${ANALYTICS_POSTGRES_ROLE}" \
144144
-e ANALYTICS_POSTGRES_DB="${ANALYTICS_POSTGRES_DB}" \
145145
postgres:17.6 bash -c '
146146
psql -h postgres -U "$POSTGRES_USER" -d postgres -v ON_ERROR_STOP=1 <<EOF
@@ -157,12 +157,4 @@ echo "🚀 Reinitializing Postgres with on-deploy.sh..."
157157

158158
docker service update --force opencrvs_postgres-on-update
159159

160-
docker service scale opencrvs_dashboards=0
161-
docker service scale opencrvs_dashboards=1
162-
163-
# Restart events service
164-
#-----------------------------
165-
docker service scale opencrvs_events=0
166-
docker service scale opencrvs_events=1
167-
168160
echo "✅ All data cleared."

0 commit comments

Comments
 (0)