make sure nfs-common is installed and make sure nfs is mounted
This commit is contained in:
parent
5f30b31ec9
commit
28b8f76408
5
0_nfs.sh
5
0_nfs.sh
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
|
apt update -y
|
||||||
|
apt -y install nfs-common
|
||||||
|
|
||||||
function create_dir() {
|
function create_dir() {
|
||||||
echo "creating directory: $1"
|
echo "creating directory: $1"
|
||||||
mkdir -p $1
|
mkdir -p $1
|
||||||
|
@ -19,3 +22,5 @@ function install_nfs_mnt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
grep '/var/lib/docker/volumes' >/dev/null || install_nfs_mnt
|
grep '/var/lib/docker/volumes' >/dev/null || install_nfs_mnt
|
||||||
|
|
||||||
|
mount -a
|
||||||
|
|
Loading…
Reference in New Issue