From d593b845b044edb4e4303287d6311c594922a8e5 Mon Sep 17 00:00:00 2001 From: abrattic <69515858+abrattic@users.noreply.github.com> Date: Wed, 4 May 2022 00:18:52 +0530 Subject: [PATCH] Fixing the umask operation by transferring it to the script itself. (#701) Signed-off-by: Shreshth Goyal --- docs/guides/vpn/wireguard/client.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guides/vpn/wireguard/client.md b/docs/guides/vpn/wireguard/client.md index 263e095..23277c2 100644 --- a/docs/guides/vpn/wireguard/client.md +++ b/docs/guides/vpn/wireguard/client.md @@ -10,6 +10,8 @@ For each new client, the following steps must be taken. For the sake of simplici ```bash #!/bin/bash + umask 077 + ipv4="$1$4" ipv6="$2$4" serv4="${1}1" @@ -51,7 +53,6 @@ For each new client, the following steps must be taken. For the sake of simplici ```bash sudo -i cd /etc/wireguard - umask 077 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"