forked from ungleich-public/cdist
Bugfixed __docker_compose:
If docker-compose is already running, curl won't override the binary I add an if the file does not exist before download
This commit is contained in:
parent
4d10655014
commit
7a5244bf7c
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
||||||
version="$(cat "$__object/parameter/version")"
|
version="$(cat "$__object/parameter/version")"
|
||||||
|
|
||||||
# Download docker-compose file
|
# Download docker-compose file
|
||||||
echo 'curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose'
|
echo 'if [ ! -e /usr/local/bin/docker-compose ]; then curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose ; fi'
|
||||||
|
|
||||||
# Change permissions
|
# Change permissions
|
||||||
echo 'chmod +x /usr/local/bin/docker-compose'
|
echo 'chmod +x /usr/local/bin/docker-compose'
|
||||||
|
|
Loading…
Reference in a new issue