summaryrefslogtreecommitdiffstats
path: root/autoscripts/postinst-nss-db
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-nss-db')
-rw-r--r--autoscripts/postinst-nss-db5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoscripts/postinst-nss-db b/autoscripts/postinst-nss-db
new file mode 100644
index 0000000..3814202
--- /dev/null
+++ b/autoscripts/postinst-nss-db
@@ -0,0 +1,5 @@
+if [ "$1" = "configure" ] && [ -e "${DPKG_ROOT}/etc/nsswitch.conf" ] ; then
+ if ! grep -q -E '^#DB#:' "${DPKG_ROOT}/etc/nsswitch.conf" ; then
+ echo "#DB#: " >> "${DPKG_ROOT}/etc/nsswitch.conf"
+ fi
+fi