You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/09/22 21:44:35 UTC

[36/50] git commit: updated refs/heads/master to 1290e10

CLOUDSTACK-7143: fix do_signature to account for change to install_cloud_scripts

The do_signature script required a lingering cloud-scripts.tar that was no longer
there after the git export tarball fiddling magic was gone.


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

Branch: refs/heads/master
Commit: d5a4a2521bc7bb6ec1450329a525d2cd9810a345
Parents: 25bb682
Author: Leo Simons <ls...@schubergphilis.com>
Authored: Tue Jul 22 15:41:32 2014 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Sep 22 21:38:15 2014 +0200

----------------------------------------------------------------------
 .../systemvmtemplate/configure_systemvm_services.sh          | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d5a4a252/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh b/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh
index e682fc7..c076bb5 100644
--- a/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh
+++ b/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh
@@ -47,14 +47,14 @@ function install_cloud_scripts() {
   chkconfig cloud off
 }
 
-do_signature() {
-  mkdir -p /var/cache/cloud/
-  gzip -c /usr/share/cloud/cloud-scripts.tar > /usr/share/cloud/cloud-scripts.tgz
+function do_signature() {
+  mkdir -p /var/cache/cloud/ /usr/share/cloud/
+  (cd ./cloud_scripts/; tar -cvf - * | gzip > /usr/share/cloud/cloud-scripts.tgz)
   md5sum /usr/share/cloud/cloud-scripts.tgz | awk '{print $1}' > /var/cache/cloud/cloud-scripts-signature
   echo "Cloudstack Release $CLOUDSTACK_RELEASE $(date)" > /etc/cloudstack-release
 }
 
-configure_services() {
+function configure_services() {
   mkdir -p /var/www/html
   mkdir -p /opt/cloud/bin
   mkdir -p /var/cache/cloud