diff options
Diffstat (limited to 'docs/openstack-nfs-server.sh')
-rw-r--r-- | docs/openstack-nfs-server.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/openstack-nfs-server.sh b/docs/openstack-nfs-server.sh index 395d04f27c..1db04eaff6 100644 --- a/docs/openstack-nfs-server.sh +++ b/docs/openstack-nfs-server.sh @@ -1,11 +1,11 @@ -#!/bin/sh +#!/bin/bash apt-get update -IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}') -HOST_NAME=$(hostname) +IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'` +HOSTNAME=`hostname` -echo "$IP_ADDR $HOST_NAME" >> /etc/hosts +echo "$IP_ADDR $HOSTNAME" >> /etc/hosts sudo apt-get install make -y |