summaryrefslogtreecommitdiffstats
path: root/docs/master_nfs_node.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/master_nfs_node.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/master_nfs_node.sh')
-rw-r--r--docs/master_nfs_node.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/master_nfs_node.sh b/docs/master_nfs_node.sh
index 4a7a8dbc12..32574c9f29 100644
--- a/docs/master_nfs_node.sh
+++ b/docs/master_nfs_node.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
usage () {
echo "Usage:"
@@ -23,7 +23,7 @@ sudo chown nobody:nogroup /dockerdata-nfs/
#Update the /etc/exports
NFS_EXP=""
for i in $@; do
- NFS_EXP+="$i(rw,sync,no_root_squash,no_subtree_check) "
+ NFS_EXP="${NFS_EXP}$i(rw,sync,no_root_squash,no_subtree_check) "
done
echo "/dockerdata-nfs "$NFS_EXP | sudo tee -a /etc/exports