constellation/dev-docs/howto/vpn/helm/files/strongswan/entrypoint.sh
3u13r 0564e4ebb4
dev-docs: add on-prem terraform to vpn setup (#2619)
* vpn: add fake-on-prem infra

* dev-docs: move vpn helm
2023-11-23 16:13:37 +01:00

14 lines
303 B
Bash

#!/bin/sh
# The charon binary is not included in the PATH generated by nixery.dev, find it manually.
charon="$(dirname "$(readlink -f "$(command -v charon-systemd)")")/../libexec/ipsec/charon"
"${charon}" &
while ! swanctl --stats > /dev/null 2> /dev/null; do
sleep 1
done
swanctl --load-all
wait