blob: ee8a1ebd9f6c2e0595ada557e9a2144810cd70dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
post_install() {
printf "To enable service KadNode: systemctl enable kadnode\n"
#add kadnode entry to NSS config file
sed -i -e '/kadnode/!s/^\(hosts:.*\)dns\(.*\)/\1kadnode dns\2/' ${DESTDIR}/etc/nsswitch.conf
}
post_remove() {
#remove kadnode entry from NSS config file
sed -i -e 's/^\(hosts:.*\)kadnode \(.*\)/\1\2/' ${DESTDIR}/etc/nsswitch.conf
}
|