mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
fix: critical security issues in update and docker setup scripts
- dist-upgrade.sh: Fix invalid shebang, add strict mode, use dynamic Ubuntu codename - install_docker.sh: Quote variables in package removal, replace su with re-login message - install_docker_ubuntu.sh: Remove legacy pip compose install, update to Compose v2.27.0
This commit is contained in:
1 parent
1e25e36ce6
commit
95f39ee99a
3 files changed
+24
-18
No files matched your search
@@ -9,14 +9,10 @@ sh get-docker.sh
|
||||
# Script: install_docker_compose.sh
|
||||
# Description: Script to install Docker Compose and its dependencies on Linux
|
||||
|
||||
# Install Docker Compose using pip
|
||||
sudo pip3 install docker-compose
|
||||
|
||||
# Download Docker Compose executable
|
||||
DOCKER_COMPOSE_VERSION=2.20.3
|
||||
sudo curl -L --fail https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||
|
||||
# Make Docker Compose executable
|
||||
# Install Docker Compose (v2) binary (standalone method)
|
||||
DOCKER_COMPOSE_VERSION=2.27.0
|
||||
sudo curl -L --fail "https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64" \
|
||||
-o /usr/local/bin/docker-compose
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
# Check if Docker Compose installation was successful
|
||||
|
||||
Reference in new issue
Block a user