#!/bin/sh set -e # Automatically added by dh_installnss/1.7 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 -e '^group:[^#]*\s(unknown)(\s|#|$)' -e '^passwd:[^#]*\s(unknown)(\s|#|$)' "${DPKG_ROOT}/etc/nsswitch.conf" ; then # Installing passwd/unknown from libnss-unknown in position last sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e '/^passwd:\s[^#]*$/ s/$/ unknown/' -e '/^passwd:\s.*#/ s/#/ unknown #/' # Installing group/unknown from libnss-unknown in position last sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e '/^group:\s[^#]*$/ s/$/ unknown/' -e '/^group:\s.*#/ s/#/ unknown #/' fi rm "${DPKG_ROOT}/etc/nsswitch.conf.nss.${DPKG_MAINTSCRIPT_PACKAGE}-will-install" fi # End automatically added section