summaryrefslogtreecommitdiffstats
path: root/docs/openstack-nfs-server.sh
diff options
context:
space:
mode:
authorGuillaume Lambert <guillaume.lambert@orange.com>2021-03-08 21:38:31 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-06-24 13:46:51 +0000
commitd9017efa3a08ee06d54654fde87384fc4819b03b (patch)
tree1f3ce8efbe3cb485b8122b607703edc2bed00de5 /docs/openstack-nfs-server.sh
parentfe651c1283fbdd67bd4482727f5b7298d55df9d8 (diff)
[COMMON] Fix some bashisms
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - sleep with suffix - string increments And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I653c14454a3232b5a349ca1564ece53ddc94289d
Diffstat (limited to 'docs/openstack-nfs-server.sh')
-rw-r--r--docs/openstack-nfs-server.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/openstack-nfs-server.sh b/docs/openstack-nfs-server.sh
index 1db04eaff6..395d04f27c 100644
--- a/docs/openstack-nfs-server.sh
+++ b/docs/openstack-nfs-server.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/bin/sh
apt-get update
-IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'`
-HOSTNAME=`hostname`
+IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}')
+HOST_NAME=$(hostname)
-echo "$IP_ADDR $HOSTNAME" >> /etc/hosts
+echo "$IP_ADDR $HOST_NAME" >> /etc/hosts
sudo apt-get install make -y