Fixed script name and download/run script

This commit is contained in:
Vladislav Plikin 2023-11-11 17:41:00 +03:00
parent ef683ce1cd
commit c2e904a459
2 changed files with 3 additions and 3 deletions

View File

@ -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
```

View File

@ -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
}