From d5a4a2521bc7bb6ec1450329a525d2cd9810a345 Mon Sep 17 00:00:00 2001 From: Leo Simons Date: Tue, 22 Jul 2014 15:41:32 +0200 Subject: [PATCH] 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. --- .../systemvmtemplate/configure_systemvm_services.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh b/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh index e682fc729db..c076bb50480 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