aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostname/nfs1/20-shares
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-21 09:17:49 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-21 09:17:49 -0400
commit8e3d7dfa20b966b928078d8071d10fb186a0d781 (patch)
tree60a2a98dd6ae9148d1cf4b8d2f3ec53b9bab41c1 /scripts/hostname/nfs1/20-shares
parent18e46bcafc2316c53d167cf6550fb69bd4e3be79 (diff)
downloadinfrastructure-8e3d7dfa20b966b928078d8071d10fb186a0d781.tar.gz
cleanup nfs1 host script
Diffstat (limited to 'scripts/hostname/nfs1/20-shares')
-rw-r--r--scripts/hostname/nfs1/20-shares11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/hostname/nfs1/20-shares b/scripts/hostname/nfs1/20-shares
new file mode 100644
index 0000000..ef013cc
--- /dev/null
+++ b/scripts/hostname/nfs1/20-shares
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# media/music
+create_dataset -p "${nfs_dataset}/media/music"
+chgrp media-admin "${nfs_root}/media/music"
+chmod 2770 "${nfs_root}/media/music"
+set_facl "${nfs_root}/media/music" \
+ group:media-admin:rwpDdaARWcs:fd:allow \
+ group:media-admin:x:d:allow \
+ group:media-access:raRcs:fd:allow \
+ group:media-access:x:d:allow