certidude/entrypoint-strongswan.sh

10 lines
159 B
Bash
Raw Normal View History

2021-04-14 11:26:50 +00:00
#!/bin/sh
set -e
2021-05-03 08:14:13 +00:00
set -x
sleep 10
2021-04-14 11:26:50 +00:00
$@
AUTHORITY=$3
2021-05-01 12:48:38 +00:00
test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem
2021-05-03 08:14:13 +00:00
/usr/sbin/ipsec stop
2021-04-14 11:26:50 +00:00
/usr/sbin/ipsec start --nofork