regenconf: fix a stupid bug using chown instead of chmod ...

This commit is contained in:
Alexandre Aubin 2023-07-10 17:55:21 +02:00
parent 0d0740826d
commit af93524c36

View file

@ -62,7 +62,8 @@ do_post_regen() {
regen_conf_files=$1 regen_conf_files=$1
# Force permission (to cover some edge cases where root's umask is like 027 and then dnsmasq cant read this file) # Force permission (to cover some edge cases where root's umask is like 027 and then dnsmasq cant read this file)
chown 644 /etc/resolv.dnsmasq.conf chown root /etc/resolv.dnsmasq.conf
chmod 644 /etc/resolv.dnsmasq.conf
# Fuck it, those domain/search entries from dhclient are usually annoying # Fuck it, those domain/search entries from dhclient are usually annoying
# lying shit from the ISP trying to MiTM # lying shit from the ISP trying to MiTM