Skip to content

Commit cbb91ad

Browse files
authored
Refactor: Docker
1 parent d596ced commit cbb91ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/docker-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
2929
$STD sh <(curl -fsSL https://get.docker.com)
3030
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
3131

32-
read -r -p "${TAB3}Would you like to add Portainer? <y/N> " prompt
32+
read -r -p "${TAB3}Would you like to add Portainer (UI)? <y/N> " prompt
3333
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
3434
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
3535
docker volume create portainer_data >/dev/null
@@ -43,9 +43,9 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
4343
portainer/portainer-ce:latest
4444
msg_ok "Installed Portainer $PORTAINER_LATEST_VERSION"
4545
else
46-
read -r -p "${TAB3}Would you like to add the Portainer Agent? <y/N> " prompt
47-
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
48-
msg_info "Installing Portainer agent $PORTAINER_AGENT_LATEST_VERSION"
46+
read -r -p "${TAB3}Would you like to install the Portainer Agent (for remote management)? <y/N> " prompt_agent
47+
if [[ ${prompt_agent,,} =~ ^(y|yes)$ ]]; then
48+
msg_info "Installing Portainer Agent $PORTAINER_AGENT_LATEST_VERSION"
4949
$STD docker run -d \
5050
-p 9001:9001 \
5151
--name portainer_agent \

0 commit comments

Comments
 (0)