From c8db106300efae2336fd3ccfc54f50f3f954a2bc Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 17:37:43 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 6f9cd8d..a55c425 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -725,6 +725,16 @@ INSTALL_WATCHTOWER() { fi echo } +PORTAINER_AGENT_INSTALL(){ + echo -e "${idsCL[LightCyan]}Installing Portainer Agent Docker... ${idsCL[Default]}" + docker run -d -p 9001:9001 --name portainer_agent --restart=always \ + -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes -v /:/host \ + portainer/agent:latest >/dev/null 2>&1 + + echo -e "\n${idsCL[Green]}Portainer Agent has been installed${idsCL[Default]}\n" + until [ "$(docker inspect -f {{.State.Health.Status}} portainer_agent)"=="healthy" ]; do sleep 0.1; done; sleep 1s + docker logs portainer_agent +} TAILSCALE_INSTALL() { echo echo "This script currently only works with Ubuntu" @@ -1244,6 +1254,7 @@ if [ ${action-x} ]; then addveeamuser) ADDVEEAMUSER;; netdataremove) NETDATA_UNINSTALL;; watchtower) INSTALL_WATCHTOWER ${2};; + portaineragent) PORTAINER_AGENT_INSTALL;; docker-cleanup) DOCKER_CLEANUP;; syncthing-update) SYNCTHING_APT_UPDATE;; mailclear) POSTFIX_CLEARQUEUE;;