try to limit race conditions

parent 058196ce
Pipeline #1733 passed with stages
in 10 minutes and 44 seconds
......@@ -28,6 +28,9 @@ appStart () {
chown -R burp: /var/lib/burp
}
# generate CA if necessary
/usr/sbin/burp -c /etc/burp/burp-server.conf -g
# start supervisord
/usr/bin/supervisord -c /etc/supervisord.conf
......
......@@ -66,8 +66,8 @@ appStart () {
chown burpui: $BURPUI_MONITOR_CONFIG
}
# wait for redis to be up
sleep 3
# wait for redis and burp-server to be up
sleep 10
LOGFILE=$(doas burpui mktemp)
echo "Setting up burp & burp-ui:"
......@@ -81,6 +81,9 @@ appStart () {
# restart burp-server
python /check-burp-server.py
# generate burp certifs
doas burpui "/usr/sbin/burp -c $BURP_CLIENT_CONFIG -a l"
ASYNC="True"
CELERY="True"
grep -q "Unable to contact the redis server" $LOGFILE && CELERY=""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment