From 5aefabbff97d0a249ada791f19cfcbdcabaaa6bf Mon Sep 17 00:00:00 2001 From: abrattic <69515858+abrattic@users.noreply.github.com> Date: Thu, 12 May 2022 00:16:05 +0530 Subject: [PATCH] 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> --- docs/guides/vpn/wireguard/client.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/guides/vpn/wireguard/client.md b/docs/guides/vpn/wireguard/client.md index 23277c2..414d7a3 100644 --- a/docs/guides/vpn/wireguard/client.md +++ b/docs/guides/vpn/wireguard/client.md @@ -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 ```