diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2014-04-04 17:00:09 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-04-10 08:15:50 -0700 |
commit | d4cc7595b5e21a92386e41f7ad7570ad9a728bd4 (patch) | |
tree | aac33f873b87fc35dec1fddf5a4b27c85dfe63bb /extras/post-upgrade-script-for-quota.sh | |
parent | bf8c9b331b2fb55882204fa31ede3997165e6748 (diff) |
rpms: Add quota upgrade scripts to rpms
Also replace /tmp/quota-config-backup with /var/tmp/glusterfs/quota-config-backup
in doc and upgrade scripts.
Change-Id: I289662300d32f75e2fc6e789037c3224054a38a5
BUG: 969461
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/7401
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/post-upgrade-script-for-quota.sh')
-rwxr-xr-x | extras/post-upgrade-script-for-quota.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/post-upgrade-script-for-quota.sh b/extras/post-upgrade-script-for-quota.sh index 3347031cdab..13b65e8870e 100755 --- a/extras/post-upgrade-script-for-quota.sh +++ b/extras/post-upgrade-script-for-quota.sh @@ -10,6 +10,8 @@ VOL=$1; +BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup + function set_limits { local var=$(gluster volume info $1 | grep 'features.quota'| cut -d" " -f2); @@ -31,8 +33,8 @@ function set_limits { gluster volume start $1 force sleep 3; - local path_array=( $(cat /tmp/quota-config-backup/vol_$1 | tail -n +3 | awk '{print $1}') ) - local limit_array=( $(cat /tmp/quota-config-backup/vol_$1 | tail -n +3 | awk '{print $2}') ) + local path_array=( $(cat $BACKUP_DIR/vol_$1 | tail -n +3 | awk '{print $1}') ) + local limit_array=( $(cat $BACKUP_DIR/vol_$1 | tail -n +3 | awk '{print $2}') ) local len=${#path_array[@]} for ((j=0; j<$len; j++)) |