mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-06-06 13:30:48 +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.
|
Download and execute the script. Answer the questions asked by the script and it will take care of the rest.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
|
curl -O https://raw.githubusercontent.com/Anatr0p/wireguard-install/master/wg.sh
|
||||||
chmod +x wireguard-install.sh
|
chmod +x wg.sh
|
||||||
./wireguard-install.sh
|
./wireguard-install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ NC='\033[0m'
|
||||||
|
|
||||||
function isRoot() {
|
function isRoot() {
|
||||||
if [ "${EUID}" -ne 0 ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user