Skip to content

Commit

Permalink
More verbose errors (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthibault79 authored Apr 9, 2018
1 parent e4a4bb7 commit af28e8f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docker/run-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ MYSQL_VERSION=5.6
start() {

echo "attempting to remove old $CONTAINER container..."
docker rm -f $CONTAINER || echo "docker rm failed. nothing to rm."
docker rm -f $CONTAINER2 || echo "docker rm failed. nothing to rm."
docker rm -f $CONTAINER || echo "docker rm failed. $CONTAINER not found."
echo "attempting to remove old $CONTAINER2 container..."
docker rm -f $CONTAINER2 || echo "docker rm failed. $CONTAINER2 not found."

# start up mysql
echo "starting up mysql container..."
Expand Down Expand Up @@ -38,11 +39,12 @@ start() {

stop() {
echo "Stopping docker $CONTAINER container..."
docker stop $CONTAINER || echo "mysql stop failed. container already stopped."
docker rm -v $CONTAINER || echo "mysql rm -v failed. container already destroyed."
docker stop $CONTAINER || echo "mysql stop failed. container $CONTAINER already stopped."
docker rm -v $CONTAINER || echo "mysql rm -v failed. container $CONTAINER already destroyed."

docker stop $CONTAINER2 || echo "mysql stop failed. container already stopped."
docker rm -v $CONTAINER2 || echo "mysql rm -v failed. container already destroyed."
echo "Stopping docker $CONTAINER2 container..."
docker stop $CONTAINER2 || echo "mysql stop failed. container $CONTAINER2 already stopped."
docker rm -v $CONTAINER2 || echo "mysql rm -v failed. container $CONTAINER2 already destroyed."
}

CONTAINER=mysql
Expand Down

0 comments on commit af28e8f

Please sign in to comment.