Due to pulling wireguard from unstable it will support any version of debian so I removed the 9
Pulled some variables from another script I wrote for server setups. I find it a much cleaner way to check
distro and version.
Added a check for Ubuntu that was missing.
Fixed placement of "-y" in apt commands
Attempted to mitigate for the edge case of already having unstable repository enabled. By checking for
"/sources.list.d/unstable.list" and "/preferences.d/unstable"
Thanks for writing this I know it will come in very handy.
Thanks for writing this I know it will come in very handy.