aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislas Lange <git@slange.me>2023-01-22 10:55:56 +0100
committerStanislas Lange <git@slange.me>2023-01-22 10:55:56 +0100
commit258eb9441b81f4bb35922fa6cf43fbbf3cf2241e (patch)
tree068829f5f78558d3a7c9e1b40fe63e737ae1fde3
parent424a92d1e01f34d02974c82de3f08252212eb464 (diff)
Overwrite existing file when creating client
-rw-r--r--wireguard-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/wireguard-install.sh b/wireguard-install.sh
index b61e6a4..4eb08b5 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -343,7 +343,7 @@ DNS = ${CLIENT_DNS_1},${CLIENT_DNS_2}
PublicKey = ${SERVER_PUB_KEY}
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
Endpoint = ${ENDPOINT}
-AllowedIPs = 0.0.0.0/0,::/0" >>"${HOME_DIR}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf"
+AllowedIPs = 0.0.0.0/0,::/0" >"${HOME_DIR}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf"
# Add the client as a peer to the server
echo -e "\n### Client ${CLIENT_NAME}