aboutsummarylogtreecommitdiffstats
path: root/nsswitch.hook
blob: aa4c6df2e079ab90bae7ef301728b7a991a33f30 (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = filesystem

[Action]
Description = Add Croco specifc config.
When = PostTransaction
Exec = /bin/sh -c "sed -i 's|systemd||g' /etc/nsswitch.conf && sed -i 's|hosts:.*|hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns wins|g' /etc/nsswitch.conf"