diff options
Diffstat (limited to '')
-rw-r--r-- | autoscripts/postinst-nss | 6 | ||||
-rw-r--r-- | autoscripts/postinst-nss-db | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/autoscripts/postinst-nss b/autoscripts/postinst-nss new file mode 100644 index 0000000..9f67154 --- /dev/null +++ b/autoscripts/postinst-nss @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] && [ -f "${DPKG_ROOT}/etc/nsswitch.conf.nss.${DPKG_MAINTSCRIPT_PACKAGE}-will-install" ] && [ -e "${DPKG_ROOT}/etc/nsswitch.conf" ] ; then + if ! grep -q -E #SERVICE_PATTERNS# "${DPKG_ROOT}/etc/nsswitch.conf" ; then + #OPERATIONS# + fi + rm "${DPKG_ROOT}/etc/nsswitch.conf.nss.${DPKG_MAINTSCRIPT_PACKAGE}-will-install" +fi 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 |