mirror of
https://github.com/pi-hole/docs.git
synced 2025-12-25 21:49:35 +00:00
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:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user