wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

script blindly assumes packages will be installed

Open ballo opened this issue 9 months ago • 1 comments

This script fails a lot because it just runs things blindly without checking if there was success or failure. It's just a poorly written hack.

The script should first prompt a user whether to attempt to install the necessary packages. It should then, separately, confirm the necessary packages are installed before asking for configuration settings like IPs etc. I think this was a hack that only worked for one machine (probably based on some blog post brain fart) which was then haphazardly expanded to support some other distros without anyone considering how to write a proper program. I mean once you have either a working or non-working installation (which it is who the heck knows), the only way to proceed from there is to delete packages whether the user wants the packages deleted or not. It's all very odd, but I suppose this is the UNIX way for better or worse.

ballo avatar May 05 '24 04:05 ballo

it works perfectly on ubuntu, probably what you need is to port it to cover whichever distribution you want it to cover specifically, i'm not sure what that could be because you haven't said what the case was with your installation failure, what distro, version, etc, i'm sure that contributing fixes that help for your case would be help others too

this script is a godsend for me... it's never been easier to make VPN tunnels and what are basically VLANs as with this

mleku avatar May 06 '24 09:05 mleku