mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 08:52:18 +02:00
Update docker-v5-install.sh
code refactoring
This commit is contained in:
parent
12d5a78a30
commit
6d2a8a2ec4
@ -118,12 +118,6 @@ msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
|
||||
|
||||
read -r -p "Would you like to add Portainer? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
PORTAINER="Y"
|
||||
else
|
||||
PORTAINER="N"
|
||||
fi
|
||||
|
||||
if [[ $PORTAINER == "Y" ]]; then
|
||||
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
|
||||
docker volume create portainer_data >/dev/null
|
||||
$STD docker run -d \
|
||||
@ -139,12 +133,6 @@ fi
|
||||
|
||||
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
DOCKER_COMPOSE="Y"
|
||||
else
|
||||
DOCKER_COMPOSE="N"
|
||||
fi
|
||||
|
||||
if [[ $DOCKER_COMPOSE == "Y" ]]; then
|
||||
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
|
||||
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
||||
mkdir -p $DOCKER_CONFIG/cli-plugins
|
||||
|
Loading…
Reference in New Issue
Block a user