summaryrefslogtreecommitdiffstats
path: root/extras/pre-upgrade-script-for-quota.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/pre-upgrade-script-for-quota.sh')
-rwxr-xr-xextras/pre-upgrade-script-for-quota.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/pre-upgrade-script-for-quota.sh b/extras/pre-upgrade-script-for-quota.sh
index a8001e9e1fe..9ff15f3b307 100755
--- a/extras/pre-upgrade-script-for-quota.sh
+++ b/extras/pre-upgrade-script-for-quota.sh
@@ -10,7 +10,7 @@ BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup
mkdir -p $BACKUP_DIR
for i in `gluster volume list`; do
var=$(gluster volume info $i | grep 'features.quota'| cut -d" " -f2);
- if [ -z "$var" ] || [ "$var" == "off" ]; then
+ if [ -z "$var" ] || [ "$var" = "off" ]; then
continue
else
gluster volume quota $i list > $BACKUP_DIR/vol_$i;