Fix 20-wired-dhcp.network permissions

This commit is contained in:
oddlama 2020-11-18 15:31:04 +01:00
parent fa94a29d63
commit 70d252584c
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
1 changed files with 4 additions and 0 deletions

View File

@ -378,6 +378,10 @@ main_install_gentoo_in_chroot() {
enable_service systemd-resolved enable_service systemd-resolved
echo -n "[Match]\nName=en*\n\n[Network]\nDHCP=yes" > /etc/systemd/network/20-wired-dhcp.network \ echo -n "[Match]\nName=en*\n\n[Network]\nDHCP=yes" > /etc/systemd/network/20-wired-dhcp.network \
|| die "Could not write dhcp network config to '/etc/systemd/network/20-wired-dhcp.network'" || die "Could not write dhcp network config to '/etc/systemd/network/20-wired-dhcp.network'"
chown root:systemd-network /etc/systemd/network/20-wired-dhcp.network \
|| die "Could not change owner of '/etc/systemd/network/20-wired-dhcp.network'"
chmod 640 /etc/systemd/network/20-wired-dhcp.network \
|| die "Could not change owner of '/etc/systemd/network/20-wired-dhcp.network'"
fi fi
# Install ansible # Install ansible