l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
657 stars 166 forks source link

line 176: -4: substring expression < 0 #16

Closed Dubzer closed 5 years ago

Dubzer commented 5 years ago

Using: almost clear Ubuntu 18 on AWS User: newbie in Linux =)

Here's a log what I do:

https://pastebin.com/rwiWquMU

l-n-s commented 5 years ago

OK, looks like your system already had wireguard cofiguration file before you ran the script. At least it had "/etc/wireguard/wg0.conf" installed. Try removing "/etc/wireguard/wg0.conf" file and start over.

KoopaTroopas commented 5 years ago

I am having the same issue as well. Ubuntu 18.04 droplet on Digital Ocean

l-n-s commented 5 years ago

It should not prompt for a client name on the first run of the script. If it does, then probably, your system already had previous wireguard installation.

KoopaTroopas commented 5 years ago

Yeah, I just saw your previous comment. Removing the wg-0.conf file did the trick

ghost commented 5 years ago

Delete the VM and create a new one.

Dubzer commented 5 years ago

Removing Wireguard config helped, thx