We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ad399 commit 00f0c26Copy full SHA for 00f0c26
helm-chart/templates/cronjob.backups.yaml
@@ -46,9 +46,10 @@ spec:
46
# install CLI dependencies
47
hab pkg install core/gzip core/curl
48
49
- # install restic
50
- hab pkg exec core/curl curl -L https://github.com/restic/restic/releases/download/v0.18.1/restic_0.18.1_linux_amd64.bz2 | bunzip2 > /bin/restic
51
- chmod +x /bin/restic
+ if [ ! -f /bin/restic ]; then
+ hab pkg exec core/curl curl -L https://github.com/restic/restic/releases/download/v0.18.1/restic_0.18.1_linux_amd64.bz2 | bunzip2 > /bin/restic
+ chmod +x /bin/restic
52
+ fi
53
54
# get composite service name
55
composite_svc_name=\"\$(hab svc status | tail -n +2 | awk '{print \$1}' | grep -- "-composite/" | cut -d '/' -f 1,2)\"
0 commit comments