diff options
Diffstat (limited to 'extras/post-upgrade-script-for-quota.sh')
| -rwxr-xr-x | extras/post-upgrade-script-for-quota.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/post-upgrade-script-for-quota.sh b/extras/post-upgrade-script-for-quota.sh index 13b65e8870e..15652429056 100755 --- a/extras/post-upgrade-script-for-quota.sh +++ b/extras/post-upgrade-script-for-quota.sh @@ -1,8 +1,8 @@ #!/bin/bash #The post-upgrade script must be executed after all the nodes in the cluster -#have upgraded to 3.5. -#Also, all the clients accessing the given volume must also be upgraded to 3.5 +#have upgraded. +#Also, all the clients accessing the given volume must also be upgraded #before the script is run. #Make sure glusterd and the brick processes are running on all nodes in the #cluster post upgrade. @@ -15,7 +15,7 @@ BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup function set_limits { local var=$(gluster volume info $1 | grep 'features.quota'| cut -d" " -f2); - if [ -z "$var" ] || [ "$var" == "off" ]; then + if [ -z "$var" ] || [ "$var" = "off" ]; then if [ $2 -eq '0' ]; then echo "Volume $1 does not have quota enabled. " \ "Exiting ..." @@ -54,7 +54,7 @@ if [ -z $1 ]; then exit 1; fi -if [ "$1" == "all" ]; then +if [ "$1" = "all" ]; then for VOL in `gluster volume list`; do set_limits $VOL '1'; |
