glusterfs RPMS should not cleanup if OFFLINE=True

In localrc file, when OFFLINE set to true, cleanup process should
not uninstall glusterfs packages.

Closes-Bug: 1435303
Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: Iecbea7ed8d79fc4c30fcc7af952f1d755b52f101
This commit is contained in:
Bharat Kumar Kobagana 2015-03-23 17:54:53 +05:30
parent 6781e723d8
commit 18f16f1b6f
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ function cleanup_glusterfs {
sudo gluster --mode=script volume delete $vol_name
done
uninstall_package glusterfs-server
if [[ "$OFFLINE" = "False" ]]; then
uninstall_package glusterfs-server
fi
if egrep -q ${GLUSTERFS_DATA_DIR} /proc/mounts; then
sudo umount ${GLUSTERFS_DATA_DIR}
fi