summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-itzks-workstation4
1 files changed, 3 insertions, 1 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation
index f9c9fb6..e65b602 100755
--- a/install-itzks-workstation
+++ b/install-itzks-workstation
@@ -143,7 +143,9 @@ sed -e 's/^NEED_GSSD=.*/NEED_GSSD=/' -i /etc/default/nfs-common
####################
# Disable NIS netgroup cache in NSCD, has been buggy in glibc since Debian jessie...
-sed -r -i /etc/nscd.conf -e "s/(\s+)enable-cache(\s+)netgroup(\s+)yes/\1enable-cache\2netgroup\3no/"
+if [ -e /etc/nscd.conf ]; then
+ sed -r -i /etc/nscd.conf -e "s/(\s+)enable-cache(\s+)netgroup(\s+)yes/\1enable-cache\2netgroup\3no/"
+fi
####################
# Make sure, no USB devices are listed in /etc/fstab