diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-09 17:56:51 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-09 17:57:28 -0300 |
commit | 4119c74bc5e6b84182d7803bea749091ed442c80 (patch) | |
tree | 68796ee8481a05425f7a8b6992f36238d752020c /tools | |
parent | cd7ddae63098cb2b838b2e6b5f987a681046574f (diff) | |
download | pfsense-4119c74bc5e6b84182d7803bea749091ed442c80.zip pfsense-4119c74bc5e6b84182d7803bea749091ed442c80.tar.gz |
rsync ova to snapshots when it's available
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builder_common.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index a3fca08..23bb0f6 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -2332,6 +2332,13 @@ snapshots_copy_to_staging_iso_updates() { snapshots_create_latest_symlink ${STAGINGAREA}/$(basename ${UPDATES_TARBALL_FILENAME}) fi + if [ -f "${OVAPATH}" ]; then + mkdir -p ${STAGINGAREA}/virtualization + sha256 ${OVAPATH} > ${OVAPATH}.sha256 + cp -l ${OVAPATH}* $STAGINGAREA/virtualization 2>/dev/null + snapshots_create_latest_symlink ${STAGINGAREA}/virtualization/$(basename ${OVAPATH}) + fi + # NOTE: Updates need a file with output similar to date output # Use the file generated at start of snapshots_dobuilds() to be consistent on times if [ -z "${_IS_RELEASE}" ]; then |