From f8170053c19a9974d7a0f0e906c4832ee134d5c8 Mon Sep 17 00:00:00 2001 From: maride Date: Wed, 22 Aug 2018 13:53:25 +0200 Subject: Init: working setup --- chainloader.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 chainloader.sh (limited to 'chainloader.sh') diff --git a/chainloader.sh b/chainloader.sh new file mode 100644 index 0000000..15fee02 --- /dev/null +++ b/chainloader.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ "$action" == "generate" ]; then + # Generate PSK + openvpn --genkey --secret /prod/persist/static.key + + # Generate client.conf + cat /prod/client.conf + echo "" + cat /prod/persist/static.key + echo "" +fi + +if [ "$action" == "run" ]; then + openvpn --config /prod/server.conf +fi + -- cgit 1.4.1