From 8c9c13e58213e097e53eefbdd688093336b4e9db Mon Sep 17 00:00:00 2001 From: Luca Albuquerque Date: Tue, 4 Jun 2019 20:36:53 -0300 Subject: [PATCH] Update names --- wireguard-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index f0487fe..571e2b3 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -137,8 +137,8 @@ read -r -p "Want to use pre-shared symmetric key? [y/N] " response case "$response" in [yY][eE][sS]|[yY]) CLIENT_SYMM_PRE_KEY=$( wg genpsk ) - echo "PresharedKey = $CLIENT_PRE_KEY" >> "/etc/wireguard/$SERVER_WG_NIC.conf" - echo "PresharedKey =$CLIENT_PRE_KEY" >> "$HOME/$SERVER_WG_NIC-client.conf" + echo "PresharedKey = $CLIENT_SYMM_PRE_KEY" >> "/etc/wireguard/$SERVER_WG_NIC.conf" + echo "PresharedKey =$CLIENT_SYMM_PRE_KEY" >> "$HOME/$SERVER_WG_NIC-client.conf" ;; esac