From 1b3cc21bd6e08acb9f589d776e601f0fa89a397a Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 29 Dec 2019 20:51:50 -0500 Subject: [PATCH] append don't overwrite --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 66568a1..66034d1 100644 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ cd /etc/wireguard umask 077 export PRIVKEY=$(wg genkey) echo $PRIVKEY | tee privatekey | wg pubkey | tee publickey -echo $PRIVKEY | tee /etc/wireguard/wg0.conf +echo $PRIVKEY | tee --append /etc/wireguard/wg0.conf sysctl -p wg-quick up wg0