CLOUDSTACK-4509 : management cache folder need to cleanup before upgrade, 
currently its cleaning up only for 3.x upgrade ie /var/cache/cloud, it should 
do that same for 4.2 also /var/cache/cloudstack
(cherry picked from commit 63c8b147fe636316bc6a886631f17a96097fb755)

Signed-off-by: animesh <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c43a9982
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c43a9982
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c43a9982

Branch: refs/heads/4.2
Commit: c43a99826465c0b9de4b30f385cf9babf6c75c84
Parents: 248ba8f
Author: rayeesn <[email protected]>
Authored: Wed Aug 28 04:07:09 2013 -0700
Committer: animesh <[email protected]>
Committed: Tue Sep 3 14:31:24 2013 -0700

----------------------------------------------------------------------
 packaging/centos63/cloud.spec | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c43a9982/packaging/centos63/cloud.spec
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec
index 5319fb6..1ae43ba 100644
--- a/packaging/centos63/cloud.spec
+++ b/packaging/centos63/cloud.spec
@@ -367,6 +367,7 @@ sed -i /"cloud soft nofile"/d /etc/security/limits.conf
 echo "cloud hard nofile 4096" >> /etc/security/limits.conf
 echo "cloud soft nofile 4096" >> /etc/security/limits.conf
 rm -rf %{_localstatedir}/cache/cloud
+rm -rf %{_localstatedir}/cache/cloudstack
 # user harcoded here, also hardcoded on wscript
 
 # save old configs if they exist (for upgrade). Otherwise we may lose them

Reply via email to