From 4bbe0093f6ecf9f74d52297ad34d9e0191c30c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 1 May 2021 15:48:38 +0300 Subject: [PATCH] Fix hardcoded paths --- entrypoint-openvpn.sh | 2 +- entrypoint-strongswan.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint-openvpn.sh b/entrypoint-openvpn.sh index a761cb9..3d4bfdc 100755 --- a/entrypoint-openvpn.sh +++ b/entrypoint-openvpn.sh @@ -4,5 +4,5 @@ sleep 10 set -e $@ AUTHORITY=$3 -test -f /etc/certidude/authority/ca5.dev.lan/host_cert.pem +test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem openvpn --config /etc/openvpn/$AUTHORITY.conf diff --git a/entrypoint-strongswan.sh b/entrypoint-strongswan.sh index 8421e04..bead603 100755 --- a/entrypoint-strongswan.sh +++ b/entrypoint-strongswan.sh @@ -4,5 +4,5 @@ sleep 10 set -e $@ AUTHORITY=$3 -test -f /etc/certidude/authority/ca5.dev.lan/host_cert.pem +test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem /usr/sbin/ipsec start --nofork