#!/bin/sh set -e # Restart NFS and autofs services sed -i "/\^(passwd\|group\|shadow\)/s/files systemd/files ldap systemd/g" /etc/nsswitch.conf; systemctl enable --now autofs