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