From 0ba517226a185a55eb1703b67d76c4a032e6c544 Mon Sep 17 00:00:00 2001 From: Carneiro Date: Mon, 9 Sep 2024 20:56:25 -0300 Subject: [PATCH] Update DEBIAN/postinst --- DEBIAN/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index d79fbf4..dba0eee 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,4 +1,5 @@ #!/bin/sh set -e # Restart NFS and autofs services -systemctl restart autofs \ No newline at end of file +sed -i "/\^(passwd\|group\|shadow\)/s/files systemd/files ldap systemd/g" /etc/nsswitch.conf; +systemctl enable --now autofs \ No newline at end of file