cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [36/50] git commit: updated refs/heads/master to 1290e10
Date Mon, 22 Sep 2014 19:44:35 GMT
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 <lsimons@schubergphilis.com>
Authored: Tue Jul 22 15:41:32 2014 +0200
Committer: Rohit Yadav <rohit.yadav@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


Mime
View raw message