create clients directory if not existent
This commit is contained in:
parent
af1e662192
commit
0e4fb0ecaa
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ wg-quick down wg0
|
||||||
mv /etc/wireguard/wg0-temp.conf /etc/wireguard/wg0.conf
|
mv /etc/wireguard/wg0-temp.conf /etc/wireguard/wg0.conf
|
||||||
wg-quick up wg0
|
wg-quick up wg0
|
||||||
|
|
||||||
|
mkdir /etc/wireguard/client
|
||||||
|
|
||||||
# generate client config file
|
# generate client config file
|
||||||
echo "[Interface]
|
echo "[Interface]
|
||||||
Address = $IP/24
|
Address = $IP/24
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue