Fix the command to run the Wireguard client generation script (#704)

* Fix the instructions to run the Wireguard client generation script

* Use the env bash shebang in wireguard client script.

Signed-off-by: Shreshth Goyal <69515858+abrattic@users.noreply.github.com>
This commit is contained in:
abrattic
2022-05-12 00:16:05 +05:30
committed by GitHub
parent 270232a62a
commit 5aefabbff9

View File

@@ -9,7 +9,7 @@ For each new client, the following steps must be taken. For the sake of simplici
Script content:
```bash
#!/bin/bash
#! /usr/bin/env bash
umask 077
ipv4="$1$4"
@@ -51,11 +51,12 @@ For each new client, the following steps must be taken. For the sake of simplici
Run the script like
```bash
chmod +x /path/to/script.sh
sudo -i
cd /etc/wireguard
bash "10.100.0." "fd08:4711::" "my_server_domain:47111" 2 "annas-android"
bash "10.100.0." "fd08:4711::" "my_server_domain:47111" 3 "peters-laptop"
/path/to/script.sh "10.100.0." "fd08:4711::" "my_server_domain:47111" 2 "annas-android"
/path/to/script.sh "10.100.0." "fd08:4711::" "my_server_domain:47111" 3 "peters-laptop"
exit
```