aboutsummaryrefslogtreecommitdiffstats
path: root/docs/archived/shell/openstack-nfs-server.sh
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2022-11-08 12:20:08 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-08 12:20:08 +0000
commitbb23177521042d092d94922187b2a7cb9052c85a (patch)
treefbcea73deaee9a7d04796ff6cd2936b5c2ef2c56 /docs/archived/shell/openstack-nfs-server.sh
parent365bdbc7853b4ca522899629c4ec653a06e5931a (diff)
parent0fb3b8f4d48a066259b8a9ea2a18d68d7644f8e5 (diff)
Merge "[RDT] Refactoring RTD"
Diffstat (limited to 'docs/archived/shell/openstack-nfs-server.sh')
-rw-r--r--docs/archived/shell/openstack-nfs-server.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/archived/shell/openstack-nfs-server.sh b/docs/archived/shell/openstack-nfs-server.sh
new file mode 100644
index 0000000000..395d04f27c
--- /dev/null
+++ b/docs/archived/shell/openstack-nfs-server.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+apt-get update
+
+IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}')
+HOST_NAME=$(hostname)
+
+echo "$IP_ADDR $HOST_NAME" >> /etc/hosts
+
+sudo apt-get install make -y
+
+# nfs server
+sudo apt-get install nfs-kernel-server -y
+
+sudo mkdir -p /nfs_share
+sudo chown nobody:nogroup /nfs_share/
+
+exit 0