diff options
author | angristan <angristan@pm.me> | 2019-05-24 00:25:25 +0200 |
---|---|---|
committer | angristan <angristan@pm.me> | 2019-05-24 00:25:25 +0200 |
commit | 9c9cf66fc8921fd814b24808e1e0ac61e5773a7c (patch) | |
tree | 0a42b0794e48c31c65359cc3bd10737ef084835a /wireguard-install.sh | |
parent | 8cb8b130d1da045b7765b96f017f2277c1c1ca70 (diff) |
Make sure /etc/wireguard exists
Diffstat (limited to 'wireguard-install.sh')
-rw-r--r-- | wireguard-install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wireguard-install.sh b/wireguard-install.sh index c2bae10..530e19b 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -88,6 +88,9 @@ elif [[ "$OS" = 'arch' ]]; then pacman -S wireguard-tools fi +# Make sure the directory exists (this does not seem the be the case on fedora) +mkdir /etc/wireguard > /dev/null 2>&1 + # Generate key pair for the server SERVER_PRIV_KEY=$(wg genkey) SERVER_PUB_KEY=$(echo "$SERVER_PRIV_KEY" | wg pubkey) |