Skip to content

Commit

Permalink
Fixes inability to restart container due to postgres shutdown error
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstyle committed Aug 8, 2016
1 parent 2309850 commit 3f9d5b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ function start_postgres() {

function stop_postgres() {
if [ -z "$CURRENT_POSTGRES_PID" ]; then
echo "postgres is not running, cannot shut it down"
exit 1
return 0
fi

kill $CURRENT_POSTGRES_PID
Expand Down

0 comments on commit 3f9d5b2

Please sign in to comment.