Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # The script that is called in the trap must also stop the DB, so below call to
- # dropdb is not enough, it just demonstrates how to call anything in the stop-container scenario!
- trap "dropdb <params>" HUP INT QUIT TERM
- # init your DB -every- time container starts
- <init script to import to clean and import dump>
- # start your postgres DB
- postgres
- echo "exited $0"
Add Comment
Please, Sign In to add comment