From 34b7288ca424faa4b9d33b4f678dc7403e354099 Mon Sep 17 00:00:00 2001 From: Harikrishna Patnala Date: Fri, 17 Oct 2014 16:58:04 +0530 Subject: [PATCH] CLOUDSTACK-7748: Cloudstack version number is missing in system vm template. /etc/cloudstack-release in system vm does not have version number which leads in vm deployment failure while checking router version. --- tools/appliance/build.sh | 2 ++ .../definitions/systemvmtemplate/configure_systemvm_services.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index 8bf78b18ab1..4ff99b845a5 100755 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -250,8 +250,10 @@ function create_definition() { if [ "${appliance}" != "${appliance_build_name}" ]; then cp -r "definitions/${appliance}" "definitions/${appliance_build_name}" set +e + if [ ! -z "${version}" ]; then sed ${sed_regex_option} -i -e "s/^CLOUDSTACK_RELEASE=.+/CLOUDSTACK_RELEASE=${version}/" \ "definitions/${appliance_build_name}/configure_systemvm_services.sh" + fi if [ ! -z "${ssh_key}" ]; then # ssh key lines can contain / sed ${sed_regex_option} -i -e "s|^key=.+|key=\"${ssh_key}\"|" \ diff --git a/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh b/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh index c076bb50480..013a8f69e0c 100644 --- a/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh +++ b/tools/appliance/definitions/systemvmtemplate/configure_systemvm_services.sh @@ -19,7 +19,7 @@ set -e set -x -CLOUDSTACK_RELEASE=4.4.0 +CLOUDSTACK_RELEASE=4.5.0 function configure_apache2() { # Enable ssl, rewrite and auth