Startup race condition fixes

This commit is contained in:
Lauri Võsandi 2021-06-09 22:32:48 +03:00
parent b7640bd1ab
commit b3f25a2538

View File

@ -1,6 +1,6 @@
#!/bin/sh
set -e
while [ ! -e $1 ]; do
while [ ! -e /server-secrets/ipsec.conf ]; do
sleep 1
done
curl -X DELETE http://127.0.0.1:2001/api/by-service/strongswan