diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-09-01 16:59:04 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-11-27 07:17:17 -0600 |
commit | 5588a0f2448cb855fb8df8cba772dc548c9770d3 (patch) | |
tree | 4f25c9429eabae74a924ae9596dcba879a6667c3 /Fedora/gluster-setup.sh | |
parent | c1b18923604acad7456dbac367382c3fa2def29c (diff) | |
download | gluster-5588a0f2448cb855fb8df8cba772dc548c9770d3.tar.gz gluster-5588a0f2448cb855fb8df8cba772dc548c9770d3.tar.bz2 gluster-5588a0f2448cb855fb8df8cba772dc548c9770d3.tar.xz gluster-5588a0f2448cb855fb8df8cba772dc548c9770d3.zip |
Bring Fedora image up to date.
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'Fedora/gluster-setup.sh')
-rw-r--r-- | Fedora/gluster-setup.sh | 8 |
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 |