[HOLMES] Fixed the Daily Healchcheck Problem
[oom.git] / docs / openstack-nfs-server.sh
1 #!/bin/sh
2
3 apt-get update
4
5 IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}')
6 HOST_NAME=$(hostname)
7
8 echo "$IP_ADDR $HOST_NAME" >> /etc/hosts
9
10 sudo apt-get install make -y
11
12 # nfs server
13 sudo apt-get install nfs-kernel-server -y
14
15 sudo mkdir -p /nfs_share
16 sudo chown nobody:nogroup /nfs_share/
17
18 exit 0