append don't overwrite

This commit is contained in:
ducoterra
2019-12-29 20:51:50 -05:00
parent 6c32ffb6d2
commit 1b3cc21bd6

View File

@@ -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