Don't start jwtproxy if conf is not created yet

This commit is contained in:
Evan Cordell 2016-05-02 17:10:56 -05:00
parent fdf81860a1
commit 612c546d16

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
echo "Waiting for jwtproxy config..."
fi