aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostname/nfs1/30-autofs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostname/nfs1/30-autofs')
-rw-r--r--scripts/hostname/nfs1/30-autofs10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/hostname/nfs1/30-autofs b/scripts/hostname/nfs1/30-autofs
index fe3a468..a7153d4 100644
--- a/scripts/hostname/nfs1/30-autofs
+++ b/scripts/hostname/nfs1/30-autofs
@@ -72,9 +72,11 @@ automountKey: /nfs/media
automountInformation: auto_media ${nfs_mount_opts}
EOF
-# auto_media: music
-ldap_add "automountKey=music,automountMapName=auto_media,${automount_basedn}" <<EOF
+# auto_media: music, movies, etc
+for share in $media_shares; do
+ ldap_add "automountKey=${share},automountMapName=auto_media,${automount_basedn}" <<EOF
objectClass: automount
-automountKey: music
-automountInformation: ${fqdn}:/media/music
+automountKey: ${share}
+automountInformation: ${fqdn}:/media/${share}
EOF
+done