angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.48k stars 1.26k forks source link

[feature request] check if systemd-resolved in installed #492

Open th1031 opened 4 months ago

th1031 commented 4 months ago

Installed the script on Debian 11 which I had converted to use systemd-resolved so as to support systemd-containerd. The installation left me without internet connectivity due to your forced installation of resolvconf. I was able to restore connectivity after removing the resovlconf package and re-creating the systemd-resolved symlink from /etc/resolv.conf to /run/systemd/resolve/stub-resolv.conf

I don't have any problem with wireguard when using systemd-resolved so checking if it's installed before installing resolvconf may save others some issues. Note the systems-resolved debian package provides a symlink from /sbin/resolvconf to /usr/bin/resolvectl.