CLOUDSTACK-1340: Correct paths used to create cloud-script.tar, fix debug msgs
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/5fc9e490 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/5fc9e490 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/5fc9e490 Branch: refs/heads/affinity_groups Commit: 5fc9e4901789ba36e4481b1007ec4e25d77f4151 Parents: b9c1252 Author: Rohit Yadav <[email protected]> Authored: Wed Feb 27 17:15:37 2013 +0530 Committer: Prachi Damle <[email protected]> Committed: Thu Mar 14 15:12:46 2013 -0700 ---------------------------------------------------------------------- .../definitions/systemvmtemplate/postinstall.sh | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5fc9e490/tools/appliance/definitions/systemvmtemplate/postinstall.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/definitions/systemvmtemplate/postinstall.sh b/tools/appliance/definitions/systemvmtemplate/postinstall.sh index 97175fa..d035527 100644 --- a/tools/appliance/definitions/systemvmtemplate/postinstall.sh +++ b/tools/appliance/definitions/systemvmtemplate/postinstall.sh @@ -156,8 +156,8 @@ configure_services() { cp -rv $snapshot_dir/patches/systemvm/debian/config/* / cp -rv $snapshot_dir/patches/systemvm/debian/vpn/* / mkdir -p /usr/share/cloud/ - tar -cvf /usr/share/cloud/cloud-scripts.tar $snapshot_dir/patches/systemvm/debian/config - tar -rvf /usr/share/cloud/cloud-scripts.tar cd $snapshot_dir/patches/systemvm/debian/vpn + tar -cvf /usr/share/cloud/cloud-scripts.tar $snapshot_dir/patches/systemvm/debian/config/* + tar -rvf /usr/share/cloud/cloud-scripts.tar $snapshot_dir/patches/systemvm/debian/vpn/* rm -fr $snapshot_dir cloudstack.tar.gz chkconfig --add cloud-early-config @@ -183,12 +183,15 @@ echo "*************INSTALLING PACKAGES********************" install_packages echo "*************DONE INSTALLING PACKAGES********************" setup_accounts +echo "*************DONE ACCOUNT SETUP********************" configure_services configure_apache2 +echo "*************DONE SETTING UP SERVICES********************" do_fixes +echo "*************DONE FIXING CONFIGURATION********************" do_signature fin=$(date +%s) t=$((fin-begin)) -echo "Finished building systemvm appliance in $t seconds" +echo "Signed systemvm build, finished building systemvm appliance in $t seconds"
