scripts/aech/upgrade-docker-compose.sh

11 lines
359 B
Bash
Raw Normal View History

2021-08-12 15:52:55 +00:00
#!/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