10 lines
359 B
Bash
10 lines
359 B
Bash
#!/bin/bash
|
|
echo "Downloading latest version of docker-compose..."
|
|
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
|
|
|
|
if [ $? -eq 0 ]; then
|
|
chmod +x /usr/local/bin/docker-compose
|
|
else
|
|
echo "Upgrade failed!"
|
|
fi
|
|
|