Skip to content
Snippets Groups Projects
Commit 20a1c52b authored by Andreas Kempe's avatar Andreas Kempe
Browse files

ldap: temporarily remove /var/mail from automount

The mail server's NFS is not working correctly. Remove it from the mount
map by filtering it out with grep.
parent 531df963
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ VALUE_ATTRIBUTE="automountInformation"
# fstype=nfs4 fungerar inte på FreeBSD då det inte finns något
# NFS-filsystem. Använd sed för att byta det till något vettigare.
/usr/local/bin/ldapsearch -LLL -x -o ldif-wrap=no -b "$SEARCHBASE" "$ENTRY_ATTRIBUTE" "$VALUE_ATTRIBUTE" | sed 's/fstype=nfs4/nfsv4,minorversion=1/' | awk '
/usr/local/bin/ldapsearch -LLL -x -o ldif-wrap=no -b "$SEARCHBASE" "$ENTRY_ATTRIBUTE" "$VALUE_ATTRIBUTE" | sed 's/fstype=nfs4/nfsv4,minorversion=1/' | grep -v mail | awk '
$1 == "'$ENTRY_ATTRIBUTE':" {
key = $2
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment