diff --git a/ct/docker.sh b/ct/docker.sh index 0ef27e8bc..1d0a3f447 100644 --- a/ct/docker.sh +++ b/ct/docker.sh @@ -37,20 +37,9 @@ function update_script() { fi if docker ps -a --format '{{.Image}}' | grep -q '^portainer/portainer-ce:latest$'; then - msg_info "Updating Portainer" - $STD docker pull portainer/portainer-ce:latest - $STD docker stop portainer - $STD docker rm portainer - $STD docker volume create portainer_data >/dev/null 2>&1 - $STD docker run -d \ - -p 8000:8000 \ - -p 9443:9443 \ - --name=portainer \ - --restart=always \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -v portainer_data:/data \ - portainer/portainer-ce:latest - msg_ok "Updated Portainer" + msg_warn "Portainer is now managed by a dedicated addon script and is no longer updated here." + echo -e "${TAB}Update/migrate it with:" + echo -e "${TAB}${TAB}${GN}bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/portainer.sh)\"${CL}" fi if docker ps -a --format '{{.Names}}' | grep -q '^portainer_agent$'; then @@ -77,5 +66,5 @@ description msg_ok "Completed successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} If you installed Portainer, access it at the following URL:${CL}" -echo -e "${GATEWAY}${BGN}https://${IP}:9443${CL}" +echo -e "${INFO}${YW} Portainer is available as a separate addon. Install it with:${CL}" +echo -e "${GATEWAY}${BGN}bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/portainer.sh)\"${CL}" diff --git a/install/homeassistant-install.sh b/install/homeassistant-install.sh index 3534f2222..0e3e2d085 100644 --- a/install/homeassistant-install.sh +++ b/install/homeassistant-install.sh @@ -32,7 +32,8 @@ get_latest_release() { CORE_LATEST_VERSION=$(get_latest_release "home-assistant/core") -DOCKER_PORTAINER="true" setup_docker +setup_docker +bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/portainer.sh)" <<<"y" msg_info "Pulling Home Assistant $CORE_LATEST_VERSION Image" $STD docker pull ghcr.io/home-assistant/home-assistant:stable