mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-12-25 11:29:58 +00:00
Make sure /etc/wireguard exists
This commit is contained in:
parent
8cb8b130d1
commit
9c9cf66fc8
@ -88,6 +88,9 @@ elif [[ "$OS" = 'arch' ]]; then
|
|||||||
pacman -S wireguard-tools
|
pacman -S wireguard-tools
|
||||||
fi
|
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
|
# Generate key pair for the server
|
||||||
SERVER_PRIV_KEY=$(wg genkey)
|
SERVER_PRIV_KEY=$(wg genkey)
|
||||||
SERVER_PUB_KEY=$(echo "$SERVER_PRIV_KEY" | wg pubkey)
|
SERVER_PUB_KEY=$(echo "$SERVER_PRIV_KEY" | wg pubkey)
|
||||||
|
Loading…
Reference in New Issue
Block a user