Merge pull request #1426 from ecordell/wait-for-jwtproxy-config

Don't start jwtproxy if conf is not created yet
This commit is contained in:
Evan Cordell 2016-05-03 13:20:36 -05:00
commit 53ce4de6aa

View file

@ -1,9 +1,12 @@
#! /bin/bash
echo 'Starting jwtproxy'
cd /
/usr/local/bin/jwtproxy --config conf/jwtproxy_conf.yaml
rm /tmp/jwtproxy_secscan.sock
echo 'Jwtproxy exited'
if [ -f conf/jwtproxy_conf.yaml ];
then
echo 'Starting jwtproxy'
/usr/local/bin/jwtproxy --config conf/jwtproxy_conf.yaml
rm /tmp/jwtproxy_secscan.sock
echo 'Jwtproxy exited'
else
sleep 1
fi