appliance: Fix hardcoded appliance name while checking and removing shared 
folders

Signed-off-by: Rohit Yadav <[email protected]>


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

Branch: refs/heads/ui-multiple-vlan-ranges
Commit: 7e7ceba83bb71b9fb00f10643b90794d21c868ba
Parents: 72c1a88
Author: Rohit Yadav <[email protected]>
Authored: Mon Mar 11 14:56:20 2013 +0530
Committer: Rohit Yadav <[email protected]>
Committed: Mon Mar 11 14:56:20 2013 +0530

----------------------------------------------------------------------
 tools/appliance/build.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7e7ceba8/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 74307a0..d18faaf 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -52,7 +52,7 @@ hdd_path=`vboxmanage list hdds | grep $appliance | grep vdi | 
cut -c 14-`
 shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
 while [ "$shared_folders" != "" ]
 do
-  vboxmanage sharedfolder remove systemvmtemplate --name "`echo 
$shared_folders | head -1 | cut -c 8- | cut -d \' -f 1`"
+  vboxmanage sharedfolder remove $appliance --name "`echo $shared_folders | 
head -1 | cut -c 8- | cut -d \' -f 1`"
   shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
 done
 

Reply via email to