Skip to content

Commit

Permalink
refactor: remove from startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasRidhuan committed Nov 22, 2021
1 parent dfa05a1 commit 045740c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions start-nightfall
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,6 @@ trap "docker-compose $FILE $STUBS down --remove-orphans -t 1; exit 1" SIGHUP SIG
docker-compose -f docker-compose.yml $FILE $STUBS down --remove-orphans

# if-else block checks - volume exist and then removes it.
if [[ $(echo $VOLUME_LIST | grep nightfall_3_timber-database-volume1) ]]; then
echo -n 'Removing '
docker volume rm nightfall_3_timber-database-volume1
fi

if [[ $(echo $VOLUME_LIST | grep nightfall_3_timber-database-volume2) ]]; then
echo -n 'Removing '
docker volume rm nightfall_3_timber-database-volume2
fi

if [[ $(echo $VOLUME_LIST | grep nightfall_3_mongodb1) ]]; then
echo -n 'Removing '
docker volume rm nightfall_3_mongodb1
Expand Down

0 comments on commit 045740c

Please sign in to comment.