mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
16 lines
272 B
Bash
Executable File
16 lines
272 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mounts="${@}"
|
|
|
|
echo "#NFS Exports" > /etc/exports
|
|
|
|
for mnt in "${mounts[@]}"; do
|
|
src=$(echo $mnt | awk -F':' '{ print $1 }')
|
|
mkdir -p $src
|
|
echo "$src *(rw,sync,no_subtree_check,fsid=0,no_root_squash)" >> /etc/exports
|
|
done
|
|
|
|
exec runsvdir /etc/sv
|