YunoHost-Apps / wireguard_ynh

WireGuard VPN software with a web UI configuration companion, packaged for YunoHost.
GNU General Public License v3.0
35 stars 10 forks source link

nsswitch appears to be "modified manually" #79

Closed biva closed 1 year ago

biva commented 1 year ago

Describe the bug

I installed Wireguard, it works well. But now I see this message in the diagnostic of Yunohost:

Configuration file /etc/nsswitch.conf appears to have been manually modified. This is probably OK if you know what you're doing! YunoHost will stop updating this file automatically... But beware that YunoHost upgrades could contain important recommended changes. If you want to, you can inspect the differences with yunohost tools regen-conf nsswitch --dry-run --with-diff and force the reset to the recommended configuration with yunohost tools regen-conf nsswitch --force

I ran the command to inspect the differences:

Warning: The configuration file '/etc/nsswitch.conf' has been manually modified and will not be updated
nsswitch:
  applied:
  pending:
    /etc/nsswitch.conf:
      diff: @@ -5,7 +5,7 @@
 shadow:         files ldap
 gshadow:        files

-hosts:          files myhostname dns
+hosts:          files myhostname mdns4_minimal [NOTFOUND=return] dns
 networks:       files

 protocols:      db files
      status: modified

I'm not sure if wireguard installation did it, but the timestamp corresponds. Is it normal? Is there a way to avoid that?

biva commented 1 year ago

I read in https://forum.yunohost.org/t/warning-pour-fichier-de-configuration-etc-nsswitch-conf-modifie-manuellement/18244 that @alexAubin says that we can restore the original file without stress, is it the case here?

tituspijean commented 1 year ago

That is unrelated to the WireGuard package. :) You are safe to follow the instructions from the forum.