From c2e904a4591777f14a5203055806d28381e97c9b Mon Sep 17 00:00:00 2001 From: Vladislav Plikin <106341126+Anatr0p@users.noreply.github.com> Date: Sat, 11 Nov 2023 17:41:00 +0300 Subject: [PATCH] Fixed script name and download/run script --- README.md | 4 ++-- wireguard-install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 171c04f..4aa8a20 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Supported distributions: Download and execute the script. Answer the questions asked by the script and it will take care of the rest. ```bash -curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh -chmod +x wireguard-install.sh +curl -O https://raw.githubusercontent.com/Anatr0p/wireguard-install/master/wg.sh +chmod +x wg.sh ./wireguard-install.sh ``` diff --git a/wireguard-install.sh b/wireguard-install.sh index f30d896..44a8e93 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -9,7 +9,7 @@ NC='\033[0m' function isRoot() { if [ "${EUID}" -ne 0 ]; then - echo "You need to run this script as root. Use sudo bash wg.sh or just sudo ./wg.sh" + echo "You need to run this script as root" exit 1 fi }