mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 13:35:29 +00:00
parent
9d7170d7a2
commit
34674317b3
@ -34,7 +34,7 @@ PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer")
|
|||||||
DOCKER_COMPOSE_LATEST_VERSION=$(get_latest_release "docker/compose")
|
DOCKER_COMPOSE_LATEST_VERSION=$(get_latest_release "docker/compose")
|
||||||
|
|
||||||
read -r -p "Would you like to add Portainer? <y/N> " prompt
|
read -r -p "Would you like to add Portainer? <y/N> " prompt
|
||||||
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
|
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
|
||||||
docker volume create portainer_data >/dev/null
|
docker volume create portainer_data >/dev/null
|
||||||
$STD docker run -d \
|
$STD docker run -d \
|
||||||
@ -49,7 +49,7 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
|
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
|
||||||
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
|
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
|
||||||
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
||||||
mkdir -p $DOCKER_CONFIG/cli-plugins
|
mkdir -p $DOCKER_CONFIG/cli-plugins
|
||||||
|
@ -86,7 +86,7 @@ network_check() {
|
|||||||
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then msg_ok "Internet Connected"; else
|
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
else
|
else
|
||||||
echo -e " 🖧 Check Network Settings"
|
echo -e " 🖧 Check Network Settings"
|
||||||
|
Loading…
Reference in New Issue
Block a user