summaryrefslogtreecommitdiffstats
path: root/Fedora/gluster-setup.sh
diff options
context:
space:
mode:
authorHumble Devassy Chirammal <humble.devassy@gmail.com>2017-11-28 17:23:27 +0530
committerGitHub <noreply@github.com>2017-11-28 17:23:27 +0530
commit9a29c12bcaec4d68d35fbfdc634d5e60cd5154ce (patch)
tree4f25c9429eabae74a924ae9596dcba879a6667c3 /Fedora/gluster-setup.sh
parentc1b18923604acad7456dbac367382c3fa2def29c (diff)
parent5588a0f2448cb855fb8df8cba772dc548c9770d3 (diff)
downloadgluster-9a29c12bcaec4d68d35fbfdc634d5e60cd5154ce.tar.gz
gluster-9a29c12bcaec4d68d35fbfdc634d5e60cd5154ce.tar.bz2
gluster-9a29c12bcaec4d68d35fbfdc634d5e60cd5154ce.tar.xz
gluster-9a29c12bcaec4d68d35fbfdc634d5e60cd5154ce.zip
Merge pull request #59 from jarrpa/fedora-update
Bring Fedora image up to date.
Diffstat (limited to 'Fedora/gluster-setup.sh')
-rw-r--r--Fedora/gluster-setup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Fedora/gluster-setup.sh b/Fedora/gluster-setup.sh
index 77ec6ef..5ad062c 100644
--- a/Fedora/gluster-setup.sh
+++ b/Fedora/gluster-setup.sh
@@ -2,7 +2,7 @@
###
# Description: Script to move the glusterfs initial setup to bind mounted directories of Atomic Host.
-# Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com>
+# Copyright (c) 2016-2017 Red Hat, Inc. <http://www.redhat.com>
#
# This file is part of GlusterFS.
#
@@ -62,7 +62,7 @@ main () {
fi
echo "Mount command Successful" >> $GLUSTERFS_LOG_CONT_DIR/mountfstab
sleep 40
- cut -f 2 -d " " $GLUSTERFS_CUSTOM_FSTAB | while read line
+ cat $GLUSTERFS_CUSTOM_FSTAB|cut -f 2 -d " " | while read line
do
if grep -qs "$line" /proc/mounts; then
echo "$line mounted." >> $GLUSTERFS_LOG_CONT_DIR/mountfstab
@@ -75,12 +75,12 @@ main () {
sleep 1
fi
else
- grep $line $GLUSTERFS_CUSTOM_FSTAB >> $GLUSTERFS_LOG_CONT_DIR/failed_bricks
+ cat $GLUSTERFS_CUSTOM_FSTAB|grep $line >> $GLUSTERFS_LOG_CONT_DIR/failed_bricks
echo "$line not mounted." >> $GLUSTERFS_LOG_CONT_DIR/mountfstab
sleep 0.5
fi
done
- if [ $(wc -l $GLUSTERFS_LOG_CONT_DIR/failed_bricks ) -gt 1 ]
+ if [ $(cat $GLUSTERFS_LOG_CONT_DIR/failed_bricks | wc -l) -gt 1 ]
then
vgscan --mknodes > $GLUSTERFS_LOG_CONT_DIR/vgscan_mknodes
sleep 10