From 0e4fb0ecaaa4e2157016a8365bf327f28bec874c Mon Sep 17 00:00:00 2001 From: "Philip (a-0)" <@ph:a-0.me> Date: Wed, 27 Jul 2022 11:57:39 +0200 Subject: [PATCH] create clients directory if not existent --- templates/add_client.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/add_client.sh.j2 b/templates/add_client.sh.j2 index af624cc..906bc7a 100644 --- a/templates/add_client.sh.j2 +++ b/templates/add_client.sh.j2 @@ -25,6 +25,8 @@ wg-quick down wg0 mv /etc/wireguard/wg0-temp.conf /etc/wireguard/wg0.conf wg-quick up wg0 +mkdir /etc/wireguard/client + # generate client config file echo "[Interface] Address = $IP/24