2021-04-14 11:26:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2021-05-03 08:14:13 +00:00
|
|
|
set -x
|
|
|
|
rm -fv /run/*.pid /var/run/*.pid /run/*/*.pid /var/run/*/*.pid
|
|
|
|
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-04-14 11:26:50 +00:00
|
|
|
openvpn --config /etc/openvpn/$AUTHORITY.conf
|