blob: 8478bcb04e5ef99498a562cf19a4da253e4693f0 [file] [log] [blame]
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +00001#!/bin/bash
2
3#Restart DFC app
4
5docker restart dfc_app
6
7DFC_APP="$(docker ps -q --filter='name=dfc_app')"
8
9
BjornMagnussonXA90b09742019-04-16 12:10:40 +000010#Wait for initialization of docker container for dfc app
BjornMagnussonXAd3104ef2019-03-26 12:48:46 +000011for i in {1..10}; do
12if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
13 then
14 echo "DFC app Running"
15 break
16 else
17 echo sleep $i
18 sleep $i
19 fi
20done