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:
parent
6781e723d8
commit
18f16f1b6f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user