mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-13 00:36:27 +00:00
Fixed script name and download/run script
This commit is contained in:
parent
ef683ce1cd
commit
c2e904a459
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user