Better bugfix:

- Download the docker-compose binary first to /tmp then move it to
its target location
This commit is contained in:
Dominique Roux 2016-12-27 13:20:57 +01:00
parent 7a5244bf7c
commit 6fa7bfbfb5

View file

@ -22,6 +22,7 @@
version="$(cat "$__object/parameter/version")" version="$(cat "$__object/parameter/version")"
# Download docker-compose file # Download docker-compose file
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' echo 'curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose'
echo 'mv /tmp/docker-compose /usr/local/bin/docker-compose'
# Change permissions # Change permissions
echo 'chmod +x /usr/local/bin/docker-compose' echo 'chmod +x /usr/local/bin/docker-compose'