Don't start jwtproxy if conf is not created yet
This commit is contained in:
parent
fdf81860a1
commit
612c546d16
1 changed files with 9 additions and 6 deletions
|
@ -1,9 +1,12 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
echo 'Starting jwtproxy'
|
|
||||||
|
|
||||||
cd /
|
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
|
||||||
|
echo "Waiting for jwtproxy config..."
|
||||||
|
fi
|
||||||
|
|
Reference in a new issue