mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Make sure /etc/wireguard exists
This commit is contained in:
parent
8cb8b130d1
commit
9c9cf66fc8
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue