YunoHost-Apps / vpnclient_ynh

VPN Client app for YunoHost
GNU Affero General Public License v3.0
41 stars 25 forks source link

Fix resolv.dnsmasq.conf ending up empty somehow #128

Closed alexAubin closed 1 month ago

alexAubin commented 3 months ago

Problem

Saw an user with this issue where /etc/resolv.dnsmasq.conf ended up being empty for some reason ... I think because of some old ".ynh" file while in fact never gets deleted nor recreated ...

Solution

We already detect if /etc/resolv.dnsmasq.conf is suspiciously empty, which breaks dnsmasq, so let's regenerate it with what the script from yunohost does (basically cat /list/of/resolvers | shuf > $conf)

PR Status

Yolo