Skip to content

Commit

Permalink
Merge pull request #81 from mdellweg/fix_db_reset
Browse files Browse the repository at this point in the history
Properly reset db
  • Loading branch information
mdellweg committed Jan 16, 2023
2 parents c464c51 + c1bccd5 commit 53d9d8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/container_scripts/database_reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ SERVICES=$(s6-rc -a list | grep -E ^pulp)
echo "$SERVICES" | xargs -I {} s6-rc -d change {}

# reset the db and run migrations
pulpcore-manager reset_db --no-input --user postgres
dropdb --user postgres pulp
dropuser --user postgres pulp
/etc/init/postgres-prepare

# restart the servicees
Expand Down

0 comments on commit 53d9d8d

Please sign in to comment.