From 29c1f91aea635edbf17d74462f8fda112355153e Mon Sep 17 00:00:00 2001 From: Leo Simons Date: Mon, 21 Jul 2014 11:01:15 +0200 Subject: [PATCH] CLOUDSTACK-7143: add vagrant_box_build_time file that's standard with current veewee templates --- .../definitions/systemvmtemplate/build_time.sh | 10 ++++++++++ .../definitions/systemvmtemplate/definition.rb | 1 + 2 files changed, 11 insertions(+) create mode 100644 tools/appliance/definitions/systemvmtemplate/build_time.sh diff --git a/tools/appliance/definitions/systemvmtemplate/build_time.sh b/tools/appliance/definitions/systemvmtemplate/build_time.sh new file mode 100644 index 00000000000..d44b9dbb155 --- /dev/null +++ b/tools/appliance/definitions/systemvmtemplate/build_time.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e +set -x + +function build_time() { + date > /etc/vagrant_box_build_time +} + +return 2>/dev/null || build_time diff --git a/tools/appliance/definitions/systemvmtemplate/definition.rb b/tools/appliance/definitions/systemvmtemplate/definition.rb index 0a58746d247..b207b740b8e 100644 --- a/tools/appliance/definitions/systemvmtemplate/definition.rb +++ b/tools/appliance/definitions/systemvmtemplate/definition.rb @@ -57,6 +57,7 @@ config = { :sudo_cmd => "echo '%p'|sudo -S sh '%f'", :shutdown_cmd => 'halt -p', :postinstall_files => [ + 'build_time.sh', 'apt_upgrade.sh', 'configure_grub.sh', 'postinstall.sh',