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:
commit
53ce4de6aa
1 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
Reference in a new issue