Skip to content

Commit d62aef8

Browse files
authored
Snapshots conditional
1 parent 120639f commit d62aef8

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Client for ODTP Components. This repository is aimed to be used as a submodule in the different components repositories.
44

5+
## Changelog
6+
7+
- v0.0.1
8+
- First version
9+
- Inluding conditional to make snapshot optionals
10+
511
# Acknowledgments, Copyright, and Licensing
612
## Acknowledgments and Funding
713
This work is part of the broader project **O**pen **D**igital **T**win **P**latform of the **S**wiss **M**obility **S**ystem (ODTP-SMS) funded by Swissuniversities CHORD grant Track B - Establish Projects. ODTP-SMS project is a joint endeavour by the Center for Sustainable Future Mobility - CSFM (ETH Zürich) and the Swiss Data Science Center - SDSC (EPFL and ETH Zürich).

odtp-app.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ mv ../odtp-output.zip odtp-output.zip
4949
#########################################################
5050

5151
# Take snapshot of workdir
52-
cd /odtp/odtp-workdir
53-
zip -r ../odtp-snapshot.zip *
54-
mv ../odtp-snapshot.zip odtp-snapshot.zip
52+
if [ "ODTP_SAVE_SNAPSHOT" == "TRUE" ]; then
53+
cd /odtp/odtp-workdir
54+
zip -r ../odtp-snapshot.zip *
55+
mv ../odtp-snapshot.zip odtp-snapshot.zip
56+
fi
5557

5658

5759
## Saving Snapshot in s3

0 commit comments

Comments
 (0)